ActivityPub: Remove follow and fix issues.

This commit is contained in:
lain 2020-07-08 17:07:24 +02:00
commit 00e54f8fe7
10 changed files with 43 additions and 77 deletions

View file

@ -1543,7 +1543,7 @@ defmodule Pleroma.User do
fn followed_identifier ->
with {:ok, %User{} = followed} <- get_or_fetch(followed_identifier),
{:ok, follower} <- maybe_direct_follow(follower, followed),
{:ok, _} <- ActivityPub.follow(follower, followed) do
{:ok, _, _, _} <- CommonAPI.follow(follower, followed) do
followed
else
err ->