Skip to content

Commit

Permalink
For converted object types treat the summary (spoiler_text) as HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
Menrath committed Jan 6, 2024
1 parent 5a6d533 commit 717f010
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/activitypub/activity/create.rb
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ def in_reply_to_uri
end

def converted_text
linkify([@status_parser.title.presence, @status_parser.spoiler_text.presence, @status_parser.url || @status_parser.uri].compact.join("\n\n"))
title = "<h2>#{status.title}</h2>" if status.title.present?
[title, @status_parser.spoiler_text.presence, linkify(@status_parser.url || @status_parser.uri)].compact.join("\n\n"))
end

def unsupported_media_type?(mime_type)
Expand Down

0 comments on commit 717f010

Please sign in to comment.