Browse Source

Restrict `get_existing_votes` to only get Create activities

tags/v1.1.4
rinpatch 5 years ago
parent
commit
29b022bb59
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lib/pleroma/web/activity_pub/utils.ex

+ 1
- 0
lib/pleroma/web/activity_pub/utils.ex View File

@@ -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(


Loading…
Cancel
Save