diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/gun/connection_pool/reclaimer.ex | 2 | ||||
-rw-r--r-- | lib/pleroma/gun/connection_pool/worker.ex | 2 | ||||
-rw-r--r-- | lib/pleroma/instances.ex | 4 | ||||
-rw-r--r-- | lib/pleroma/web/activity_pub/i_ds.ex (renamed from lib/pleroma/web/activity_pub/ids.ex) | 0 | ||||
-rw-r--r-- | lib/pleroma/web/activity_pub/pipeline.ex | 12 | ||||
-rw-r--r-- | lib/pleroma/web/activity_pub/side_effects.ex | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/lib/pleroma/gun/connection_pool/reclaimer.ex b/lib/pleroma/gun/connection_pool/reclaimer.ex index 74c957b0b..4c643d7cb 100644 --- a/lib/pleroma/gun/connection_pool/reclaimer.ex +++ b/lib/pleroma/gun/connection_pool/reclaimer.ex @@ -5,7 +5,7 @@ defmodule Pleroma.Gun.ConnectionPool.Reclaimer do use GenServer, restart: :temporary - defp registry(), do: Pleroma.Gun.ConnectionPool + defp registry, do: Pleroma.Gun.ConnectionPool def start_monitor do pid = diff --git a/lib/pleroma/gun/connection_pool/worker.ex b/lib/pleroma/gun/connection_pool/worker.ex index c15a98dfa..a3fa75386 100644 --- a/lib/pleroma/gun/connection_pool/worker.ex +++ b/lib/pleroma/gun/connection_pool/worker.ex @@ -6,7 +6,7 @@ defmodule Pleroma.Gun.ConnectionPool.Worker do alias Pleroma.Gun use GenServer, restart: :temporary - defp registry(), do: Pleroma.Gun.ConnectionPool + defp registry, do: Pleroma.Gun.ConnectionPool def start_link([key | _] = opts) do GenServer.start_link(__MODULE__, opts, name: {:via, Registry, {registry(), key}}) diff --git a/lib/pleroma/instances.ex b/lib/pleroma/instances.ex index 79c6029ae..12f69feff 100644 --- a/lib/pleroma/instances.ex +++ b/lib/pleroma/instances.ex @@ -5,7 +5,7 @@ defmodule Pleroma.Instances do @moduledoc "Instances context." - defp adapter(), do: Pleroma.Instances.Instance + defp adapter, do: Pleroma.Instances.Instance def filter_reachable(urls_or_hosts), do: adapter().filter_reachable(urls_or_hosts) def reachable?(url_or_host), do: adapter().reachable(url_or_host) @@ -14,7 +14,7 @@ defmodule Pleroma.Instances do def set_unreachable(url_or_host, unreachable_since \\ nil), do: adapter().set_unreachable(url_or_host, unreachable_since) - def get_consistently_unreachable(), do: adapter().get_consistently_unreachable() + def get_consistently_unreachable, do: adapter().get_consistently_unreachable() def set_consistently_unreachable(url_or_host), do: set_unreachable(url_or_host, reachability_datetime_threshold()) diff --git a/lib/pleroma/web/activity_pub/ids.ex b/lib/pleroma/web/activity_pub/i_ds.ex index eab19b7fe..eab19b7fe 100644 --- a/lib/pleroma/web/activity_pub/ids.ex +++ b/lib/pleroma/web/activity_pub/i_ds.ex diff --git a/lib/pleroma/web/activity_pub/pipeline.ex b/lib/pleroma/web/activity_pub/pipeline.ex index 97c0dc0bd..904d535b4 100644 --- a/lib/pleroma/web/activity_pub/pipeline.ex +++ b/lib/pleroma/web/activity_pub/pipeline.ex @@ -21,12 +21,12 @@ defmodule Pleroma.Web.ActivityPub.Pipeline do # Elixir 1.9 compiler complains unless we do it like this defp fallback(a, b), do: a || b - defp side_effects(), do: fallback(@side_effects, ActivityPub.SideEffects) - defp federator(), do: fallback(@federator, Federator) - defp object_validator(), do: fallback(@object_validator, ActivityPub.ObjectValidator) - defp mrf(), do: fallback(@mrf, ActivityPub.MRF) - defp activity_pub(), do: fallback(@activity_pub, ActivityPub.ActivityPub) - defp config(), do: fallback(@config, Pleroma.Config) + defp side_effects, do: fallback(@side_effects, ActivityPub.SideEffects) + defp federator, do: fallback(@federator, Federator) + defp object_validator, do: fallback(@object_validator, ActivityPub.ObjectValidator) + defp mrf, do: fallback(@mrf, ActivityPub.MRF) + defp activity_pub, do: fallback(@activity_pub, ActivityPub.ActivityPub) + defp config, do: fallback(@config, Pleroma.Config) @spec common_pipeline(map(), keyword()) :: {:ok, Activity.t() | Object.t(), keyword()} | {:error, any()} diff --git a/lib/pleroma/web/activity_pub/side_effects.ex b/lib/pleroma/web/activity_pub/side_effects.ex index ff699cf51..c72072a7c 100644 --- a/lib/pleroma/web/activity_pub/side_effects.ex +++ b/lib/pleroma/web/activity_pub/side_effects.ex @@ -36,7 +36,7 @@ defmodule Pleroma.Web.ActivityPub.SideEffects do # Elixir 1.9 compiler complains unless we do it like this defp fallback(a, b), do: a || b - defp ap_streamer(), do: fallback(@ap_streamer, ActivityPub) + defp ap_streamer, do: fallback(@ap_streamer, ActivityPub) @impl true def handle(object, meta \\ []) |