public: true,
quarantined_instances: []
-config :pleroma, :activitypub, accept_blocks: true
+config :pleroma, :activitypub,
+ accept_blocks: true,
+ unfollow_blocked: true,
+ outgoing_blocks: true
+
+config :pleroma, :user, deny_follow_blocked: true
+ config :pleroma, :mrf_rejectnonpublic,
+ allow_followersonly: false,
+ allow_direct: false
+
config :pleroma, :mrf_simple,
media_removal: [],
media_nsfw: [],
end
end
+ def maybe_follow(%User{} = follower, %User{info: info} = followed) do
+ if not following?(follower, followed) do
+ follow(follower, followed)
+ else
+ {:ok, follower}
+ end
+ end
+
+ @user_config Application.get_env(:pleroma, :user)
+ @deny_follow_blocked Keyword.get(@user_config, :deny_follow_blocked)
+
def follow(%User{} = follower, %User{info: info} = followed) do
ap_followers = followed.follower_address