forked from AkkomaGang/akkoma
Add announce federation.
This commit is contained in:
parent
138641589d
commit
861a294cda
1 changed files with 4 additions and 0 deletions
|
@ -199,6 +199,10 @@ def announce(%User{ap_id: ap_id} = user, %Object{data: %{"id" => id}} = object)
|
||||||
|
|
||||||
update_object_in_activities(object)
|
update_object_in_activities(object)
|
||||||
|
|
||||||
|
if user.local do
|
||||||
|
Pleroma.Web.Federator.enqueue(:publish, activity)
|
||||||
|
end
|
||||||
|
|
||||||
{:ok, activity, object}
|
{:ok, activity, object}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue