From: Ivan Tashkinov Date: Wed, 8 Jul 2020 09:54:23 +0000 (+0300) Subject: [#1895] credo fix. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a6495f4a686feb3d4728432dd075f425c04c32dd;p=akkoma [#1895] credo fix. --- diff --git a/lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex b/lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex index a23f47e54..ab7b1d6aa 100644 --- a/lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex @@ -88,7 +88,7 @@ defmodule Pleroma.Web.MastodonAPI.TimelineController do ) end - defp restrict_unauthenticated?(_local_only = true) do + defp restrict_unauthenticated?(true = _local_only) do Pleroma.Config.get([:restrict_unauthenticated, :timelines, :local]) end