Fix append_quote uses TagManager instead of ActivityPub::TagManager
This commit is contained in:
parent
0c206d8711
commit
ac517abef2
@ -121,7 +121,7 @@ class TextFormatter
|
|||||||
|
|
||||||
return "@#{h(entity[:screen_name])}" if account.nil?
|
return "@#{h(entity[:screen_name])}" if account.nil?
|
||||||
|
|
||||||
url = ActivityPub::TagManager.instance.url_for(account)
|
url = ap_tag_manager.url_for(account)
|
||||||
display_username = same_username_hits&.positive? || with_domains? ? account.pretty_acct : account.username
|
display_username = same_username_hits&.positive? || with_domains? ? account.pretty_acct : account.username
|
||||||
|
|
||||||
<<~HTML.squish
|
<<~HTML.squish
|
||||||
@ -130,7 +130,7 @@ class TextFormatter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def append_quote
|
def append_quote
|
||||||
@text += "\n[#{tag_manager.url_for(quote)}]"
|
@text += "\n[#{ap_tag_manager.url_for(quote)}]"
|
||||||
end
|
end
|
||||||
|
|
||||||
def entity_cache
|
def entity_cache
|
||||||
@ -141,6 +141,10 @@ class TextFormatter
|
|||||||
@tag_manager ||= TagManager.instance
|
@tag_manager ||= TagManager.instance
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def ap_tag_manager
|
||||||
|
@ap_tag_manager ||= ActivityPub::TagManager.instance
|
||||||
|
end
|
||||||
|
|
||||||
delegate :local_domain?, to: :tag_manager
|
delegate :local_domain?, to: :tag_manager
|
||||||
|
|
||||||
def multiline?
|
def multiline?
|
||||||
|
Loading…
Reference in New Issue
Block a user