projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5dc7e6
)
Fix federation of unreblog activity
author
Francis Dinh
<normandy@firemail.cc>
Sat, 21 Apr 2018 03:09:19 +0000
(23:09 -0400)
committer
Francis Dinh
<normandy@firemail.cc>
Sat, 21 Apr 2018 03:09:19 +0000
(23:09 -0400)
lib/pleroma/web/activity_pub/activity_pub.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/activity_pub.ex
b/lib/pleroma/web/activity_pub/activity_pub.ex
index dccd2e7577c2c8c97497182bc03915ba2f800a1f..215ddc57a6ed17835e0f952f9828dd1ab150841a 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub.ex
@@
-144,6
+144,7
@@
defmodule Pleroma.Web.ActivityPub.ActivityPub 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}