Handle domain mutes on the backend #804

Merged
floatingghost merged 5 commits from domain-mute-backend-processing into develop 2024-08-20 10:32:48 +00:00
Showing only changes of commit 3b197503d2 - Show all commits

View file

@ -1629,7 +1629,7 @@ def blocks_domain?(%User{} = user, %User{ap_id: ap_id}) do
end
def blocks_domain?(%User{} = user, url) when is_binary(url) do
%{host: host} = URI.parse(target.ap_id)
%{host: host} = URI.parse(url)
Enum.member?(user.domain_blocks, host)
end