Make quarentine work with list of tuples instead of strings
This commit is contained in:
parent
dd947d9bc8
commit
27fe7b0274
5 changed files with 18 additions and 5 deletions
|
|
@ -100,6 +100,11 @@ defmodule Pleroma.Web.ActivityPub.MRF do
|
|||
Enum.any?(domains, fn domain -> Regex.match?(domain, host) end)
|
||||
end
|
||||
|
||||
@spec instance_list_from_tuples([{String.t(), String.t()}]) :: [String.t()]
|
||||
def instance_list_from_tuples(list) do
|
||||
Enum.map(list, fn {instance, _} -> instance end)
|
||||
end
|
||||
|
||||
def describe(policies) do
|
||||
{:ok, policy_configs} =
|
||||
policies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue