forked from AkkomaGang/akkoma
[#1895] Applied code review suggestion.
This commit is contained in:
parent
20461137a3
commit
3f8370a285
1 changed files with 5 additions and 8 deletions
|
@ -88,15 +88,12 @@ def direct(%{assigns: %{user: user}} = conn, params) do
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp restrict_unauthenticated?(local_only) do
|
defp restrict_unauthenticated?(_local_only = true) do
|
||||||
config_key =
|
Pleroma.Config.get([:restrict_unauthenticated, :timelines, :local])
|
||||||
if local_only do
|
end
|
||||||
:local
|
|
||||||
else
|
|
||||||
:federated
|
|
||||||
end
|
|
||||||
|
|
||||||
Pleroma.Config.get([:restrict_unauthenticated, :timelines, config_key])
|
defp restrict_unauthenticated?(_) do
|
||||||
|
Pleroma.Config.get([:restrict_unauthenticated, :timelines, :federated])
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET /api/v1/timelines/public
|
# GET /api/v1/timelines/public
|
||||||
|
|
Loading…
Reference in a new issue