Fix custom emojis not detected when used in content warning (#5049)
This commit is contained in:
parent
846cd4e838
commit
9c8e602163
4 changed files with 9 additions and 3 deletions
|
@ -63,6 +63,12 @@ class Formatter
|
|||
Sanitize.fragment(html, config)
|
||||
end
|
||||
|
||||
def format_spoiler(status)
|
||||
html = encode(status.spoiler_text)
|
||||
html = encode_custom_emojis(html, status.emojis)
|
||||
html.html_safe # rubocop:disable Rails/OutputSafety
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def encode(html)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue