ActivityPub: Don't block-filter your own posts
We are filtering out replies to people you block, but that should not include your own posts.
This commit is contained in:
parent
882c1fc6bd
commit
f2f0a0260f
2 changed files with 18 additions and 3 deletions
|
|
@ -841,7 +841,14 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
from(
|
||||
[activity, object: o] in query,
|
||||
where: fragment("not (? = ANY(?))", activity.actor, ^blocked_ap_ids),
|
||||
where: fragment("not (? && ?)", activity.recipients, ^blocked_ap_ids),
|
||||
where:
|
||||
fragment(
|
||||
"((not (? && ?)) or ? = ?)",
|
||||
activity.recipients,
|
||||
^blocked_ap_ids,
|
||||
activity.actor,
|
||||
^user.ap_id
|
||||
),
|
||||
where:
|
||||
fragment(
|
||||
"recipients_contain_blocked_domains(?, ?) = false",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue