forked from AkkomaGang/akkoma
Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
aafdc975bd
commit
2ca98f2d94
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ defmodule Pleroma.Web.PleromaAPI.InstancesController do
|
||||||
def show(conn, _params) do
|
def show(conn, _params) do
|
||||||
unreachable =
|
unreachable =
|
||||||
Instances.get_consistently_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})
|
json(conn, %{"unreachable" => unreachable})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue