Remove sensitive-property setting #nsfw, create HashtagPolicy
This commit is contained in:
parent
998437d4a4
commit
3bc7d12271
15 changed files with 187 additions and 62 deletions
|
|
@ -92,7 +92,9 @@ defmodule Pleroma.Web.ActivityPub.MRF do
|
|||
end
|
||||
|
||||
def get_policies do
|
||||
Pleroma.Config.get([:mrf, :policies], []) |> get_policies()
|
||||
Pleroma.Config.get([:mrf, :policies], [])
|
||||
|> get_policies()
|
||||
|> Enum.concat([Pleroma.Web.ActivityPub.MRF.HashtagPolicy])
|
||||
end
|
||||
|
||||
defp get_policies(policy) when is_atom(policy), do: [policy]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue