mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-24 16:08:09 +00:00
Fix incorrect type definition for maybe_direct_follow/2
This commit is contained in:
parent
38d01ff511
commit
ea26add540
1 changed files with 1 additions and 1 deletions
|
@ -1048,7 +1048,7 @@ defmodule Pleroma.User do
|
||||||
|
|
||||||
def needs_update?(_), do: true
|
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
|
# "Locked" (self-locked) users demand explicit authorization of follow requests
|
||||||
def maybe_direct_follow(%User{} = follower, %User{local: true, is_locked: true} = followed) do
|
def maybe_direct_follow(%User{} = follower, %User{local: true, is_locked: true} = followed) do
|
||||||
|
|
Loading…
Reference in a new issue