Refactor to reuse the one status partial across moderation tools (#35644)
This commit is contained in:
parent
4ef0ce033e
commit
cbb9a4dbe3
14 changed files with 88 additions and 119 deletions
|
|
@ -45,6 +45,10 @@ class StatusEdit < ApplicationRecord
|
|||
delegate :local?, :application, :edited?, :edited_at,
|
||||
:discarded?, :visibility, :language, to: :status
|
||||
|
||||
def with_media?
|
||||
ordered_media_attachments.any?
|
||||
end
|
||||
|
||||
def emojis
|
||||
return @emojis if defined?(@emojis)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue