2
0

Prepend “RE: <url>” fallback link to Mastodon-authored quote posts (#35971)

This commit is contained in:
Claire
2025-09-03 11:35:44 +02:00
committed by GitHub
parent 927468bce5
commit 624c024766
3 changed files with 22 additions and 1 deletions

View File

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