From fd3a45e3482e86dad3c1dfc069144864c4ff0b0b Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 9 Feb 2022 01:17:07 +0100 Subject: Add edit history to web UI (#17390) * Add edit history to web UI * Change history reducer to store items per status * Fix missing loading prop --- app/models/status_edit.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/models/status_edit.rb') diff --git a/app/models/status_edit.rb b/app/models/status_edit.rb index a89df86c5..6e88864e8 100644 --- a/app/models/status_edit.rb +++ b/app/models/status_edit.rb @@ -20,4 +20,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 -- cgit