Fix CommonAPI.follow/2 which returned users in the reverse order they were provided to the function

This commit is contained in:
Mark Felder 2024-08-07 12:37:58 -04:00
commit 06e8ece4cc
9 changed files with 31 additions and 31 deletions

View file

@ -130,7 +130,7 @@ defmodule Pleroma.Web.CommonAPI do
if activity.data["state"] == "reject" do
{:error, :rejected}
else
{:ok, follower, followed, activity}
{:ok, followed, follower, activity}
end
end
end