Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
735cdfb8
Commit
735cdfb8
authored
Sep 22, 2018
by
kaniini
Browse files
user: add User.html_filter_policy()
parent
8ae9424e
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
View file @
735cdfb8
...
...
@@ -669,6 +669,12 @@ def delete(%User{} = user) do
:ok
end
def
html_filter_policy
(%
User
{
info:
%{
"no_rich_text"
=>
true
}})
do
Pleroma
.
HTML
.
Scrubber
.
TwitterText
end
def
html_filter_policy
(
_
),
do
:
nil
def
get_or_fetch_by_ap_id
(
ap_id
)
do
user
=
get_by_ap_id
(
ap_id
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment