Skip to content

Commit

Permalink
Converted object types summary (spoiler text) is treated 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 2e7b916
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_parser.title}</h2>" if @status_parser.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 2e7b916

Please sign in to comment.