Remove no longer used function
authorkPherox <admin@mail.kr-kp.com>
Tue, 31 Mar 2020 13:48:42 +0000 (22:48 +0900)
committerkPherox <admin@mail.kr-kp.com>
Tue, 31 Mar 2020 13:50:18 +0000 (22:50 +0900)
lib/pleroma/user.ex

index d9aa5405756f7af1dd808a1d4f3610edd472177c..6644d6b6622e00f8de3bf2bf69ca953048917088 100644 (file)
@@ -1983,17 +1983,6 @@ defmodule Pleroma.User do
 
   def fields(%{fields: fields}), do: fields
 
-  def sanitized_fields(%User{} = user) do
-    user
-    |> User.fields()
-    |> Enum.map(fn %{"name" => name, "value" => value} ->
-      %{
-        "name" => name,
-        "value" => Pleroma.HTML.filter_tags(value, Pleroma.HTML.Scrubber.LinksOnly)
-      }
-    end)
-  end
-
   def validate_fields(changeset, remote? \\ false) do
     limit_name = if remote?, do: :max_remote_account_fields, else: :max_account_fields
     limit = Pleroma.Config.get([:instance, limit_name], 0)