summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-07-22 19:16:00 -0400
committerMark Felder <feld@feld.me>2024-07-22 19:16:00 -0400
commit3f4f567c9cbc0182eb99ec951a6088bfc5bb57d5 (patch)
treedbd79c3cf6124d8c91a9308d7f15f072d4ac83cb /lib
parentadb93f7e5d9b86a02f5114f0597b8274e4ada88d (diff)
downloadpleroma-3f4f567c9cbc0182eb99ec951a6088bfc5bb57d5.tar.gz
pleroma-3f4f567c9cbc0182eb99ec951a6088bfc5bb57d5.zip
Fix order of args for hide_reblogs/2
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/common_api.ex2
-rw-r--r--lib/pleroma/web/mastodon_api/mastodon_api.ex2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/common_api.ex b/lib/pleroma/web/common_api.ex
index 827710c11..13d738310 100644
--- a/lib/pleroma/web/common_api.ex
+++ b/lib/pleroma/web/common_api.ex
@@ -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
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api.ex b/lib/pleroma/web/mastodon_api/mastodon_api.ex
index a382e2826..c6243d654 100644
--- a/lib/pleroma/web/mastodon_api/mastodon_api.ex
+++ b/lib/pleroma/web/mastodon_api/mastodon_api.ex
@@ -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