mirror of
https://github.com/yingziwu/mastodon.git
synced 2026-02-04 03:25:14 +00:00
Fix URI generation for reblogs by accounts with numerical AP ids (#37415)
This commit is contained in:
parent
adea0b7b31
commit
deeaf50472
2 changed files with 23 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ class ActivityPub::TagManager
|
|||
context_url(target) unless target.parent_account_id.nil? || target.parent_status_id.nil?
|
||||
when :note, :comment, :activity
|
||||
if target.account.numeric_ap_id?
|
||||
return activity_ap_account_status_url(target.account, target) if target.reblog?
|
||||
return activity_ap_account_status_url(target.account.id, target) if target.reblog?
|
||||
|
||||
ap_account_status_url(target.account.id, target)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue