test
This commit is contained in:
parent
ffab5217f4
commit
ecb99b433e
@ -10,11 +10,12 @@ class QuoteFormatter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
return html if status.quote? && !options[:escape_quotify]
|
def render_quote
|
||||||
|
link = link_to_url({ url: ap_tag_manager.url_for(quote) })
|
||||||
url = ActivityPub::TagManager.instance.url_for(status.quote)
|
<<~HTML.squish
|
||||||
link = encode_and_link_urls(url)
|
<span class="quote-inline"><br/>~~~~~~~~~~<br/>[#{link}]</span>
|
||||||
html.sub(/(<[^>]+>)\z/, "<span class=\"quote-inline\"><br/>QT: #{link}</span>\\1")
|
HTML
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def format_in_quote(status, **options)
|
def format_in_quote(status, **options)
|
||||||
|
@ -128,14 +128,6 @@ class TextFormatter
|
|||||||
HTML
|
HTML
|
||||||
end
|
end
|
||||||
|
|
||||||
def quotify
|
|
||||||
url = ActivityPub::TagManager.instance.url_for(status.quote)
|
|
||||||
link = encode_and_link_urls(url)
|
|
||||||
<<~HTML.squish
|
|
||||||
<span class="quote-inline"><br/>QT: #{link}</span>"
|
|
||||||
HTML
|
|
||||||
end
|
|
||||||
|
|
||||||
def entity_cache
|
def entity_cache
|
||||||
@entity_cache ||= EntityCache.instance
|
@entity_cache ||= EntityCache.instance
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user