Fix order of args for hide_reblogs/2
This commit is contained in:
parent
adb93f7e5d
commit
3f4f567c9c
6 changed files with 10 additions and 10 deletions
|
|
@ -687,7 +687,7 @@ defmodule Pleroma.Web.CommonAPI do
|
|||
defp set_visibility(activity, _), do: {:ok, activity}
|
||||
|
||||
@spec hide_reblogs(User.t(), User.t()) :: {:ok, any()} | {:error, any()}
|
||||
def hide_reblogs(%User{} = user, %User{} = target) do
|
||||
def hide_reblogs(%User{} = target, %User{} = user) do
|
||||
UserRelationship.create_reblog_mute(user, target)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPI do
|
|||
end
|
||||
|
||||
defp set_reblogs_visibility(false, {:ok, follower, followed, _}) do
|
||||
CommonAPI.hide_reblogs(follower, followed)
|
||||
CommonAPI.hide_reblogs(followed, follower)
|
||||
end
|
||||
|
||||
defp set_reblogs_visibility(_, {:ok, follower, followed, _}) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue