Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F162740
rule_view.ex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
548 B
Referenced Files
None
Subscribers
None
rule_view.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.AdminAPI.RuleView
do
use
Pleroma.Web
,
:view
require
Pleroma.Constants
def
render
(
"index.json"
,
%{
rules
:
rules
}
=
_opts
)
do
render_many
(
rules
,
__MODULE__
,
"show.json"
)
end
def
render
(
"show.json"
,
%{
rule
:
rule
}
=
_opts
)
do
%{
id
:
to_string
(
rule
.
id
),
priority
:
rule
.
priority
,
text
:
rule
.
text
,
hint
:
rule
.
hint
}
end
end
File Metadata
Details
Attached
Mime Type
text/x-ruby
Expires
Fri, Feb 21, 5:46 PM (13 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
66817
Default Alt Text
rule_view.ex (548 B)
Attached To
Mode
rPUBE pleroma-upstream
Attached
Detach File
Event Timeline
Log In to Comment