Fix order of args for follow/2

This commit is contained in:
Mark Felder 2024-07-22 19:07:55 -04:00
commit f79a16c062
34 changed files with 119 additions and 119 deletions

View file

@ -121,7 +121,7 @@ defmodule Pleroma.Web.CommonAPI do
@spec follow(User.t(), User.t()) ::
{:ok, User.t(), User.t(), Activity.t() | Object.t()} | {:error, :rejected}
def follow(follower, followed) do
def follow(followed, follower) do
timeout = Pleroma.Config.get([:activitypub, :follow_handshake_timeout])
with {:ok, follow_data, _} <- Builder.follow(follower, followed),