Skip to content
Snippets Groups Projects
Commit cbb2b709 authored by kaniini's avatar kaniini
Browse files

activitypub: transmogrifier: fix follow request rejections

parent ebb34963
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment