Restrict poll replies when fetching activiites for context
authorrinpatch <rinpatch@sdf.org>
Tue, 21 May 2019 11:35:20 +0000 (14:35 +0300)
committerrinpatch <rinpatch@sdf.org>
Tue, 21 May 2019 11:35:20 +0000 (14:35 +0300)
lib/pleroma/web/activity_pub/activity_pub.ex

index ce78d895bf9107ec39de7b4bcd474e4b864bf249..c04e6c2b823b49d1ecab71a2d40b79cfab1fddb2 100644 (file)
@@ -491,6 +491,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
 
     from(activity in Activity)
     |> restrict_blocked(opts)
+    |> restrict_poll_replies(opts)
     |> restrict_recipients(recipients, opts["user"])
     |> where(
       [activity],