mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-10 18:17:55 +00:00
Merge branch 'import-maybe-direct-follow' into 'develop'
Use maybe_direct_follow for follow imports See merge request pleroma/pleroma!378
This commit is contained in:
commit
c7140c67c7
|
@ -223,7 +223,7 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
|
|||
|> Enum.map(fn account ->
|
||||
with %User{} = follower <- User.get_cached_by_ap_id(user.ap_id),
|
||||
%User{} = followed <- User.get_or_fetch(account),
|
||||
{:ok, follower} <- User.follow(follower, followed) do
|
||||
{:ok, follower} <- User.maybe_direct_follow(follower, followed) do
|
||||
ActivityPub.follow(follower, followed)
|
||||
else
|
||||
err -> Logger.debug("follow_import: following #{account} failed with #{inspect(err)}")
|
||||
|
|
Loading…
Reference in a new issue