activitypub: transmogrifier: fix follow request rejections
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 29 Jan 2019 11:57:46 +0000 (11:57 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 29 Jan 2019 11:57:46 +0000 (11:57 +0000)
lib/pleroma/web/activity_pub/transmogrifier.ex

index c2ced51d813587a6fd6478e63b3f949e12ed6f36..43725c3db9f273cb37c28099b6c88eb5ed28a7af 100644 (file)
@@ -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