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

This commit is contained in:
Haelwenn 2020-10-21 19:40:37 +00:00
parent aafdc975bd
commit 2ca98f2d94
1 changed files with 1 additions and 1 deletions

View File

@ -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