Bladeren bron

Change query order in fetch_activities_for_context_query to make poll vote exclusion work

tags/v1.1.4
rinpatch 5 jaren geleden
bovenliggende
commit
5bd41fef8b
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. +1
    -1
      lib/pleroma/web/activity_pub/activity_pub.ex

+ 1
- 1
lib/pleroma/web/activity_pub/activity_pub.ex Bestand weergeven

@@ -489,7 +489,6 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do


from(activity in Activity) from(activity in Activity)
|> maybe_preload_objects(opts) |> maybe_preload_objects(opts)
|> exclude_poll_votes(opts)
|> restrict_blocked(opts) |> restrict_blocked(opts)
|> restrict_recipients(recipients, opts["user"]) |> restrict_recipients(recipients, opts["user"])
|> where( |> where(
@@ -502,6 +501,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
^context ^context
) )
) )
|> exclude_poll_votes(opts)
|> order_by([activity], desc: activity.id) |> order_by([activity], desc: activity.id)
end end




Laden…
Annuleren
Opslaan