Fix order of args for thread_muted?/2
This commit is contained in:
parent
4601473aaf
commit
8127e0d8cc
6 changed files with 12 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue