forked from AkkomaGang/akkoma
Fix federation of unreblog activity
This commit is contained in:
parent
c5dc7e6e31
commit
4b9f2ab526
1 changed files with 1 additions and 0 deletions
|
@ -144,6 +144,7 @@ def unannounce(%User{} = actor, %Object{} = object, local \\ true) do
|
|||
with %Activity{} = activity <- get_existing_announce(actor.ap_id, object),
|
||||
unannounce_data <- make_unannounce_data(actor, object),
|
||||
{:ok, unannounce_activity} <- insert(unannounce_data, local),
|
||||
:ok <- maybe_federate(activity),
|
||||
{:ok, _activity} <- Repo.delete(activity),
|
||||
{:ok, object} <- remove_announce_from_object(activity, object) do
|
||||
{:ok, unannounce_activity, activity, object}
|
||||
|
|
Loading…
Reference in a new issue