mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-18 19:14:03 +00:00
Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
parent
aafdc975bd
commit
2ca98f2d94
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue