mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 11:45:50 +08:00
FIX: Display small post actions when embedding a topic (#9278)
This commit is contained in:
@ -17,6 +17,9 @@ module EmbedHelper
|
||||
end
|
||||
|
||||
def get_html(post)
|
||||
raw PrettyText.format_for_email(post.cooked, post)
|
||||
key = "js.action_codes.#{post.action_code}"
|
||||
cooked = post.cooked.blank? ? I18n.t(key, when: nil).humanize : post.cooked
|
||||
|
||||
raw PrettyText.format_for_email(cooked, post)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user