Fix order of args for thread_muted?/2

This commit is contained in:
Mark Felder 2024-07-22 18:23:13 -04:00
commit 8127e0d8cc
6 changed files with 12 additions and 12 deletions

View file

@ -593,8 +593,8 @@ defmodule Pleroma.Web.CommonAPI do
end
end
@spec thread_muted?(User.t(), Activity.t()) :: boolean()
def thread_muted?(%User{id: user_id}, %{data: %{"context" => context}})
@spec thread_muted?(Activity.t(), User.t()) :: boolean()
def thread_muted?(%{data: %{"context" => context}}, %User{id: user_id})
when is_binary(context) do
ThreadMute.exists?(user_id, context)
end