about summary refs log tree commit diff
path: root/app/models/status_edit.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/status_edit.rb')
-rw-r--r--app/models/status_edit.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/status_edit.rb b/app/models/status_edit.rb
index a89df86c5..3d8098fe7 100644
--- a/app/models/status_edit.rb
+++ b/app/models/status_edit.rb
@@ -11,6 +11,7 @@
 #  media_attachments_changed :boolean          default(FALSE), not null
 #  created_at                :datetime         not null
 #  updated_at                :datetime         not null
+#  content_type              :string
 #
 
 class StatusEdit < ApplicationRecord
@@ -20,4 +21,9 @@ class StatusEdit < ApplicationRecord
   default_scope { order(id: :asc) }
 
   delegate :local?, to: :status
+
+  def emojis
+    return @emojis if defined?(@emojis)
+    @emojis = CustomEmoji.from_text([spoiler_text, text].join(' '), status.account.domain)
+  end
 end