diff options
author | Sergey Suprunenko <suprunenko.s@gmail.com> | 2019-11-25 16:59:55 +0100 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-07-06 09:30:39 +0300 |
commit | 8277b29790dfd283d94b995539dcb28e51131150 (patch) | |
tree | 4bf5c7bf6e3626ffc36510a6379ac417a8859039 /lib | |
parent | 5af1bf443dfd21a6b0be9efc1f55a73e590f6ba3 (diff) | |
download | pleroma-8277b29790dfd283d94b995539dcb28e51131150.tar.gz pleroma-8277b29790dfd283d94b995539dcb28e51131150.zip |
Restrict thread statuses that contain user's irreversible filters
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 31353c866..8abbef487 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -447,6 +447,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do |> maybe_set_thread_muted_field(opts) |> restrict_blocked(opts) |> restrict_recipients(recipients, opts[:user]) + |> restrict_filtered(opts) |> where( [activity], fragment( @@ -1112,6 +1113,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do |> restrict_favorited_by(opts) |> restrict_blocked(restrict_blocked_opts) |> restrict_muted(restrict_muted_opts) + |> restrict_filtered(opts) |> restrict_media(opts) |> restrict_visibility(opts) |> restrict_thread_visibility(opts, config) |