diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-01-29 11:57:46 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-01-29 11:57:46 +0000 |
commit | cbb2b709de72c72542b0db883fa7b1b7d886688b (patch) | |
tree | ec035783bea3da13a09df872f528e175973b2c93 | |
parent | ebb3496386c1e195b48bcdc9d72c4c30e60fe340 (diff) | |
download | pleroma-cbb2b709de72c72542b0db883fa7b1b7d886688b.tar.gz pleroma-cbb2b709de72c72542b0db883fa7b1b7d886688b.zip |
activitypub: transmogrifier: fix follow request rejections
-rw-r--r-- | lib/pleroma/web/activity_pub/transmogrifier.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/activity_pub/transmogrifier.ex b/lib/pleroma/web/activity_pub/transmogrifier.ex index c2ced51d8..43725c3db 100644 --- a/lib/pleroma/web/activity_pub/transmogrifier.ex +++ b/lib/pleroma/web/activity_pub/transmogrifier.ex @@ -453,9 +453,9 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do {:ok, follow_activity} <- Utils.update_follow_state(follow_activity, "reject"), %User{local: true} = follower <- User.get_cached_by_ap_id(follow_activity.data["actor"]), {:ok, activity} <- - ActivityPub.accept(%{ + ActivityPub.reject(%{ to: follow_activity.data["to"], - type: "Accept", + type: "Reject", actor: followed.ap_id, object: follow_activity.data["id"], local: false |