Commit 735cdfb8 authored by kaniini's avatar kaniini
Browse files

user: add User.html_filter_policy()

parent 8ae9424e
...@@ -669,6 +669,12 @@ def delete(%User{} = user) do ...@@ -669,6 +669,12 @@ def delete(%User{} = user) do
:ok :ok
end 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 def get_or_fetch_by_ap_id(ap_id) do
user = get_by_ap_id(ap_id) user = get_by_ap_id(ap_id)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment