projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d977d73
)
Restrict `get_existing_votes` to only get Create activities
author
rinpatch
<rinpatch@sdf.org>
Tue, 4 Jun 2019 09:42:10 +0000
(12:42 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Tue, 4 Jun 2019 09:42:10 +0000
(12:42 +0300)
lib/pleroma/web/activity_pub/utils.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/utils.ex
b/lib/pleroma/web/activity_pub/utils.ex
index b8159e9e5d1cdc2eb57fdf06208db5e2cf6297c1..faae7e747f4a100755c5e6cf78a1b22cae80e236 100644
(file)
--- a/
lib/pleroma/web/activity_pub/utils.ex
+++ b/
lib/pleroma/web/activity_pub/utils.ex
@@
-794,6
+794,7
@@
defmodule Pleroma.Web.ActivityPub.Utils do
query =
from(
[activity, object: object] in Activity.with_preloaded_object(Activity),
+ where: fragment("(?)->>'type' = 'Create'", activity.data),
where: fragment("(?)->>'actor' = ?", activity.data, ^actor),
where:
fragment(