Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F56225066
ensure_user_key_plug.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
384 B
Referenced Files
None
Subscribers
None
ensure_user_key_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.Plugs.EnsureUserKeyPlug
do
import
Plug.Conn
def
init
(
opts
)
do
opts
end
def
call
(%{
assigns
:
%{
user
:
_
}}
=
conn
,
_
),
do
:
conn
def
call
(
conn
,
_
)
do
conn
|>
assign
(
:user
,
nil
)
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Fri, Apr 3, 9:44 PM (18 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1221856
Default Alt Text
ensure_user_key_plug.ex (384 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment