projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
baefb97
)
Change query order in fetch_activities_for_context_query to make poll vote exclusion...
author
rinpatch
<rinpatch@sdf.org>
Mon, 3 Jun 2019 07:58:37 +0000
(10:58 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Mon, 3 Jun 2019 07:58:37 +0000
(10:58 +0300)
lib/pleroma/web/activity_pub/activity_pub.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/activity_pub.ex
b/lib/pleroma/web/activity_pub/activity_pub.ex
index d494d5cd1ee628b2de1dc32e506e3a2b57e97f74..45feae25a720fba541480753dd9ef97dd95c7e59 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub.ex
@@
-489,7
+489,6
@@
defmodule Pleroma.Web.ActivityPub.ActivityPub 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
@@
defmodule Pleroma.Web.ActivityPub.ActivityPub do
^context
)
)
+ |> exclude_poll_votes(opts)
|> order_by([activity], desc: activity.id)
end