mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-25 17:55:24 +01:00
user: add User.html_filter_policy()
This commit is contained in:
parent
8ae9424edb
commit
735cdfb848
@ -669,6 +669,12 @@ defmodule Pleroma.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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user