bench sync
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Fri, 24 Apr 2020 06:57:30 +0000 (09:57 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Fri, 24 Apr 2020 12:43:54 +0000 (15:43 +0300)
benchmarks/load_testing/activities.ex

index 2b032943bc286fa57e459e68f74be41080b2d9f0..482e42fc14d5841ef03d9a493140beaa02c65deb 100644 (file)
@@ -279,7 +279,7 @@ defmodule Pleroma.LoadTesting.Activities do
     actor = get_actor(group, user, friends, non_friends)
 
     with activity_id when not is_nil(activity_id) <- get_random_create_activity_id(),
-         {:ok, _activity, _object} <- CommonAPI.favorite(activity_id, actor) do
+         {:ok, _activity} <- CommonAPI.favorite(actor, activity_id) do
       :ok
     else
       {:error, _} ->