Change query order in fetch_activities_for_context_query to make poll vote exclusion work
This commit is contained in:
parent
baefb97dc4
commit
5bd41fef8b
|
@ -489,7 +489,6 @@ defp fetch_activities_for_context_query(context, opts) do
|
|||
|
||||
from(activity in Activity)
|
||||
|> maybe_preload_objects(opts)
|
||||
|> exclude_poll_votes(opts)
|
||||
|> restrict_blocked(opts)
|
||||
|> restrict_recipients(recipients, opts["user"])
|
||||
|> where(
|
||||
|
@ -502,6 +501,7 @@ defp fetch_activities_for_context_query(context, opts) do
|
|||
^context
|
||||
)
|
||||
)
|
||||
|> exclude_poll_votes(opts)
|
||||
|> order_by([activity], desc: activity.id)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue