mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-28 01:23:29 +00:00
Fix wrong target URIs in ActivityPub Add/Remove (#6668)
This commit is contained in:
parent
e6520c0270
commit
89a52d6280
|
@ -19,6 +19,6 @@ class ActivityPub::AddSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def target
|
def target
|
||||||
account_collection_url(object, :featured)
|
account_collection_url(object.account, :featured)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -19,6 +19,6 @@ class ActivityPub::RemoveSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def target
|
def target
|
||||||
account_collection_url(object, :featured)
|
account_collection_url(object.account, :featured)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue