Fix order of args for vote/3

This commit is contained in:
Mark Felder 2024-07-22 18:38:02 -04:00
commit 1cccc0fc21
7 changed files with 14 additions and 14 deletions

View file

@ -1559,9 +1559,9 @@ defmodule Pleroma.Web.CommonAPITest do
object = Object.normalize(activity, fetch: false)
{:ok, _, object} = CommonAPI.vote(other_user, object, [0])
{:ok, _, object} = CommonAPI.vote(object, other_user, [0])
assert {:error, "Already voted"} == CommonAPI.vote(other_user, object, [1])
assert {:error, "Already voted"} == CommonAPI.vote(object, other_user, [1])
end
end