Restrict get_existing_votes
to only get Create activities
This commit is contained in:
父節點
d977d73b91
當前提交
29b022bb59
@ -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(
|
||||
|
載入中…
新增問題並參考
Block a user