fixed unfollow for relay actor
This commit is contained in:
parent
f740d786a3
commit
64bfb41c55
4 changed files with 48 additions and 1 deletions
|
|
@ -36,7 +36,8 @@ defmodule Pleroma.Web.ActivityPub.Relay do
|
|||
def unfollow(target_instance) do
|
||||
with %User{} = local_user <- get_actor(),
|
||||
{:ok, %User{} = target_user} <- User.get_or_fetch_by_ap_id(target_instance),
|
||||
{:ok, activity} <- ActivityPub.unfollow(local_user, target_user) do
|
||||
{:ok, activity} <- ActivityPub.unfollow(local_user, target_user),
|
||||
{:ok, _, _} <- User.unfollow(local_user, target_user) do
|
||||
Logger.info("relay: unfollowed instance: #{target_instance}: id=#{activity.data["id"]}")
|
||||
{:ok, activity}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue