Fix order of args for unfollow/2
This commit is contained in:
parent
f79a16c062
commit
adb93f7e5d
5 changed files with 8 additions and 8 deletions
|
|
@ -136,7 +136,7 @@ defmodule Pleroma.Web.CommonAPI do
|
|||
end
|
||||
|
||||
@spec unfollow(User.t(), User.t()) :: {:ok, User.t()} | {:error, any()}
|
||||
def unfollow(follower, unfollowed) do
|
||||
def unfollow(unfollowed, follower) do
|
||||
with {:ok, follower, _follow_activity} <- User.unfollow(follower, unfollowed),
|
||||
{:ok, _activity} <- ActivityPub.unfollow(follower, unfollowed),
|
||||
{:ok, _subscription} <- User.unsubscribe(follower, unfollowed),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue