Restrict poll replies when fetching activiites for context

This commit is contained in:
rinpatch 2019-05-21 14:35:20 +03:00
parent f28747858b
commit d7c4d029c8

View file

@ -491,6 +491,7 @@ defp fetch_activities_for_context_query(context, opts) do
from(activity in Activity) from(activity in Activity)
|> restrict_blocked(opts) |> restrict_blocked(opts)
|> restrict_poll_replies(opts)
|> restrict_recipients(recipients, opts["user"]) |> restrict_recipients(recipients, opts["user"])
|> where( |> where(
[activity], [activity],