Misc refactoring / tweaks (ThreadMute.exists?/2).
This commit is contained in:
parent
6b793d3f83
commit
dfbc05d496
5 changed files with 14 additions and 13 deletions
|
|
@ -358,7 +358,7 @@ defmodule Pleroma.Web.CommonAPI do
|
|||
def thread_muted?(%{id: nil} = _user, _activity), do: false
|
||||
|
||||
def thread_muted?(user, activity) do
|
||||
ThreadMute.check_muted(user.id, activity.data["context"]) != []
|
||||
ThreadMute.exists?(user.id, activity.data["context"])
|
||||
end
|
||||
|
||||
def report(user, %{"account_id" => account_id} = data) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue