From: William Pitcock Date: Tue, 29 Jan 2019 11:57:46 +0000 (+0000) Subject: activitypub: transmogrifier: fix follow request rejections X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=cbb2b709de72c72542b0db883fa7b1b7d886688b;p=akkoma activitypub: transmogrifier: fix follow request rejections --- 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