logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 2ca98f2d94e2976ae35998aecff27809d4b066cf
parent aafdc975bdd38f74cdf5d3f8517d41c5dd76c56b
Author: Haelwenn <contact+git.pleroma.social@hacktivis.me>
Date:   Wed, 21 Oct 2020 19:40:37 +0000

Apply 1 suggestion(s) to 1 file(s)

Diffstat:

Mlib/pleroma/web/pleroma_api/controllers/instances_controller.ex2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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