commit: ea26add540b1da91ebc266b0c0532e1f8c54f4d7
parent 38d01ff511ecd7223787772044ca6e3b20578c05
Author: Mark Felder <feld@feld.me>
Date: Sat, 20 Jan 2024 17:43:34 -0500
Fix incorrect type definition for maybe_direct_follow/2
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
@@ -1048,7 +1048,7 @@ defmodule Pleroma.User do
def needs_update?(_), do: true
- @spec maybe_direct_follow(User.t(), User.t()) :: {:ok, User.t()} | {:error, String.t()}
+ @spec maybe_direct_follow(User.t(), User.t()) :: {:ok, User.t(), User.t()} | {:error, String.t()}
# "Locked" (self-locked) users demand explicit authorization of follow requests
def maybe_direct_follow(%User{} = follower, %User{local: true, is_locked: true} = followed) do