aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/pleroma/user.ex6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
index e3e6aa0d8..487bfce32 100644
--- a/lib/pleroma/user.ex
+++ b/lib/pleroma/user.ex
@@ -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)