diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2020-10-21 19:40:37 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2020-10-21 19:40:37 +0000 |
commit | 2ca98f2d94e2976ae35998aecff27809d4b066cf (patch) | |
tree | ef449a868355a9d99bfb2f2f5e53d9c223c75fa3 /lib | |
parent | aafdc975bdd38f74cdf5d3f8517d41c5dd76c56b (diff) | |
download | pleroma-2ca98f2d94e2976ae35998aecff27809d4b066cf.tar.gz |
Apply 1 suggestion(s) to 1 file(s)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/pleroma_api/controllers/instances_controller.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/pleroma_api/controllers/instances_controller.ex b/lib/pleroma/web/pleroma_api/controllers/instances_controller.ex index c577f1d1e..9e97480df 100644 --- a/lib/pleroma/web/pleroma_api/controllers/instances_controller.ex +++ b/lib/pleroma/web/pleroma_api/controllers/instances_controller.ex @@ -14,7 +14,7 @@ defmodule Pleroma.Web.PleromaAPI.InstancesController do def show(conn, _params) do unreachable = Instances.get_consistently_unreachable() - |> Enum.reduce(%{}, fn {host, date}, acc -> Map.put(acc, host, to_string(date)) end) + |> Map.new(fn {host, date} -> {host, to_string(date)} end) json(conn, %{"unreachable" => unreachable}) end |