|
|
@ -44,6 +44,7 @@ class CustomEmoji < ApplicationRecord
|
|
|
|
scope :remote, -> { where.not(domain: nil) }
|
|
|
|
scope :remote, -> { where.not(domain: nil) }
|
|
|
|
scope :alphabetic, -> { order(domain: :asc, shortcode: :asc) }
|
|
|
|
scope :alphabetic, -> { order(domain: :asc, shortcode: :asc) }
|
|
|
|
scope :by_domain_and_subdomains, ->(domain) { where(domain: domain).or(where(arel_table[:domain].matches('%.' + domain))) }
|
|
|
|
scope :by_domain_and_subdomains, ->(domain) { where(domain: domain).or(where(arel_table[:domain].matches('%.' + domain))) }
|
|
|
|
|
|
|
|
scope :listed, -> { local.where(disabled: false).where(visible_in_picker: true) }
|
|
|
|
|
|
|
|
|
|
|
|
remotable_attachment :image, LIMIT
|
|
|
|
remotable_attachment :image, LIMIT
|
|
|
|
|
|
|
|
|
|
|
|