Merge branch 'following-relationships-optimizations' into 'develop'
[akkoma] / test / web / mastodon_api / views / notification_view_test.exs
index 81eefd7350d839078ba09793eb127061a3f041b2..c3ec9dfecbcf3f1dc44186748c30097fc2b03c28 100644 (file)
@@ -54,7 +54,7 @@ defmodule Pleroma.Web.MastodonAPI.NotificationViewTest do
     user = insert(:user)
     another_user = insert(:user)
     {:ok, create_activity} = CommonAPI.post(user, %{"status" => "hey"})
-    {:ok, favorite_activity, _object} = CommonAPI.favorite(create_activity.id, another_user)
+    {:ok, favorite_activity} = CommonAPI.favorite(another_user, create_activity.id)
     {:ok, [notification]} = Notification.create_notifications(favorite_activity)
     create_activity = Activity.get_by_id(create_activity.id)