mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 00:38:27 +00:00
Merge commit 'eb118d85238da8d0583868abab2756bb329742ba' into glitch-soc/merge-upstream
Conflicts: - `yarn.lock`: Upstream updated dependencies textually adjacent to glitch-soc-only ones. Updated them as upstream did.
This commit is contained in:
@@ -40,6 +40,8 @@ class ActivityPub::TagManager
|
||||
case target.object_type
|
||||
when :person
|
||||
target.instance_actor? ? instance_actor_url : account_url(target)
|
||||
when :conversation
|
||||
context_url(target) unless target.parent_account_id.nil? || target.parent_status_id.nil?
|
||||
when :note, :comment, :activity
|
||||
return activity_account_status_url(target.account, target) if target.reblog?
|
||||
|
||||
@@ -76,6 +78,12 @@ class ActivityPub::TagManager
|
||||
activity_account_status_url(target.account, target)
|
||||
end
|
||||
|
||||
def context_uri_for(target, page_params = nil)
|
||||
raise ArgumentError, 'target must be a local activity' unless %i(note comment activity).include?(target.object_type) && target.local?
|
||||
|
||||
items_context_url(target.conversation, page_params)
|
||||
end
|
||||
|
||||
def replies_uri_for(target, page_params = nil)
|
||||
raise ArgumentError, 'target must be a local activity' unless %i(note comment activity).include?(target.object_type) && target.local?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user