Merge branch 'develop' into feature/database-compaction

This commit is contained in:
rinpatch 2019-04-18 12:56:38 +03:00
commit 83589ca6a5
3 changed files with 25 additions and 1 deletions

View file

@ -727,7 +727,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
from(
activity in query,
where: fragment("not (? = ANY(?))", activity.actor, ^blocks),
where: fragment("not (?->'to' \\?| ?)", activity.data, ^blocks),
where: fragment("not (? && ?)", activity.recipients, ^blocks),
where: fragment("not (split_part(?, '/', 3) = ANY(?))", activity.actor, ^domain_blocks)
)
end