Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F84166084
federating_plug.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
540 B
Referenced Files
None
Subscribers
None
federating_plug.ex
View Options
# Pleroma: A lightweight social networking server
# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule
Pleroma.Web.FederatingPlug
do
import
Plug.Conn
def
init
(
options
)
do
options
end
def
call
(
conn
,
_opts
)
do
if
Pleroma.Config
.
get
([
:instance
,
:federating
])
do
conn
else
conn
|>
put_status
(
404
)
|>
Phoenix.Controller
.
put_view
(
Pleroma.Web.ErrorView
)
|>
Phoenix.Controller
.
render
(
"404.json"
)
|>
halt
()
end
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Thu, Jun 4, 6:57 PM (15 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1225538
Default Alt Text
federating_plug.ex (540 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment