test
This commit is contained in:
@@ -43,7 +43,7 @@ class TextFormatter
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
html += render_quote if quote?
|
html += quotify if quote?
|
||||||
|
|
||||||
html = simple_format(html, {}, sanitize: false).delete("\n") if multiline?
|
html = simple_format(html, {}, sanitize: false).delete("\n") if multiline?
|
||||||
|
|
||||||
@@ -128,10 +128,11 @@ class TextFormatter
|
|||||||
HTML
|
HTML
|
||||||
end
|
end
|
||||||
|
|
||||||
def render_quote
|
def quotify
|
||||||
link = link_to_url({ url: ap_tag_manager.url_for(quote) })
|
url = ActivityPub::TagManager.instance.url_for(status.quote)
|
||||||
|
link = encode_and_link_urls(url)
|
||||||
<<~HTML.squish
|
<<~HTML.squish
|
||||||
<span class="quote-inline"><br/>~~~~~~~~~~<br/>[#{link}]</span>
|
<span class="quote-inline"><br/>QT: #{link}</span>"
|
||||||
HTML
|
HTML
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user