diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-02-09 01:17:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 01:17:07 +0100 |
commit | fd3a45e3482e86dad3c1dfc069144864c4ff0b0b (patch) | |
tree | 41d497599cf1ecb35f9f2e278b67c90e3a850a46 /app/models | |
parent | 2adcad04ff96fc8e7cb9aeefef1b22ea38e65457 (diff) |
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
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status_edit.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |