base =
%{
mrf_policies: mrf_policies,
- exclusions: length(exclusions) > 0,
+ exclusions: length(exclusions) > 0
}
|> Map.merge(policy_configs)
{:ok, base}
end
- def describe(), do: get_policies() |> describe()
+ def describe, do: get_policies() |> describe()
end
def filter(message), do: {:ok, message}
@impl true
- def describe(), do: {:ok, %{}}
+ def describe, do: {:ok, %{}}
end
def filter(message), do: {:ok, message}
@impl true
- def describe(), do: {:ok, %{}}
+ def describe, do: {:ok, %{}}
end
end
@impl true
- def describe(), do: {:ok, %{}}
+ def describe, do: {:ok, %{}}
end
def filter(object), do: {:ok, object}
- def describe(), do: {:ok, %{}}
+ def describe, do: {:ok, %{}}
end
def filter(message), do: {:ok, message}
@impl true
- def describe(), do: {:ok, %{mrf_hellthread: Pleroma.Config.get([:mrf_hellthread])}}
+ def describe, do: {:ok, %{mrf_hellthread: Pleroma.Config.get([:mrf_hellthread])}}
end
def filter(message), do: {:ok, message}
@impl true
- def describe() do
+ def describe do
# This horror is needed to convert regex sigils to strings
mrf_keyword =
Pleroma.Config.get(:mrf_keyword, [])
def filter(message), do: {:ok, message}
@impl true
- def describe(), do: {:ok, %{}}
+ def describe, do: {:ok, %{}}
end
def filter(message), do: {:ok, message}
@impl true
- def describe(), do: {:ok, %{}}
+ def describe, do: {:ok, %{}}
end
def filter(object), do: {:ok, object}
@impl true
- def describe(), do: {:ok, %{}}
+ def describe, do: {:ok, %{}}
end
end
@impl true
- def describe(), do: {:ok, %{}}
+ def describe, do: {:ok, %{}}
end
def filter(object), do: {:ok, object}
- def describe(), do: {:ok, %{}}
+ def describe, do: {:ok, %{}}
end
def filter(object), do: {:ok, object}
@impl true
- def describe(), do: {:ok, %{mrf_rejectnonpublic: Pleroma.Config.get([:mrf_rejectnonpublic])}}
+ def describe, do: {:ok, %{mrf_rejectnonpublic: Pleroma.Config.get([:mrf_rejectnonpublic])}}
end
def filter(object), do: {:ok, object}
@impl true
- def describe() do
+ def describe do
exclusions = Pleroma.Config.get([:instance, :mrf_transparency_exclusions])
mrf_simple =
def filter(message), do: {:ok, message}
@impl true
- def describe(), do: {:ok, %{}}
+ def describe, do: {:ok, %{}}
end
def filter(message), do: {:ok, message}
@impl true
- def describe(), do: {:ok, %{}}
+ def describe, do: {:ok, %{}}
end
def filter(object), do: {:ok, object}
@impl true
- def describe() do
+ def describe do
mrf_user_allowlist =
Config.get([:mrf_user_allowlist], [])
|> Enum.into(%{}, fn {k, v} -> {k, length(v)} end)
def filter(message), do: {:ok, message}
@impl true
- def describe(), do: {:ok, %{mrf_module_mock: "some config data"}}
+ def describe, do: {:ok, %{mrf_module_mock: "some config data"}}
end