Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F74191782
instances_controller.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
630 B
Referenced Files
None
Subscribers
None
instances_controller.ex
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Web.PleromaAPI.InstancesController
do
use
Pleroma.Web
,
:controller
alias
Pleroma.Instances
plug
(
Pleroma.Web.ApiSpec.CastAndValidate
)
defdelegate
open_api_operation
(
action
),
to
:
Pleroma.Web.ApiSpec.PleromaInstancesOperation
def
show
(
conn
,
_params
)
do
unreachable
=
Instances
.
get_consistently_unreachable
()
|>
Map
.
new
(
fn
{
host
,
date
}
->
{
host
,
to_string
(
date
)}
end
)
json
(
conn
,
%{
"unreachable"
=>
unreachable
})
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Sat, Apr 25, 6:13 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1286908
Default Alt Text
instances_controller.ex (630 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment