Fix the summary of converted object types to be treated as HTML (#28629)
This commit is contained in:
parent
c36a76b9eb
commit
556837f156
2 changed files with 63 additions and 4 deletions
|
@ -342,7 +342,15 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
|||
end
|
||||
|
||||
def converted_text
|
||||
linkify([@status_parser.title.presence, @status_parser.spoiler_text.presence, @status_parser.url || @status_parser.uri].compact.join("\n\n"))
|
||||
[formatted_title, @status_parser.spoiler_text.presence, formatted_url].compact.join("\n\n")
|
||||
end
|
||||
|
||||
def formatted_title
|
||||
"<h2>#{@status_parser.title}</h2>" if @status_parser.title.present?
|
||||
end
|
||||
|
||||
def formatted_url
|
||||
linkify(@status_parser.url || @status_parser.uri)
|
||||
end
|
||||
|
||||
def unsupported_media_type?(mime_type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue