Prepend “RE: <url>” fallback link to Mastodon-authored quote posts (#35971)
This commit is contained in:
@@ -45,6 +45,13 @@ class StatusEdit < ApplicationRecord
|
||||
delegate :local?, :application, :edited?, :edited_at,
|
||||
:discarded?, :reply?, :visibility, :language, to: :status
|
||||
|
||||
def quote
|
||||
underlying_quote = status.quote
|
||||
return if underlying_quote.nil? || underlying_quote.id != quote_id
|
||||
|
||||
underlying_quote
|
||||
end
|
||||
|
||||
def with_media?
|
||||
ordered_media_attachments.any?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user