2
0

Refactor to reuse the one status partial across moderation tools (#35644)

This commit is contained in:
Emelia Smith
2025-08-21 16:51:11 +02:00
committed by Claire
parent 4ef0ce033e
commit cbb9a4dbe3
14 changed files with 88 additions and 119 deletions

View File

@@ -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)