Misc refactoring / tweaks (ThreadMute.exists?/2).

This commit is contained in:
Ivan Tashkinov 2020-03-27 08:01:03 +03:00
commit dfbc05d496
5 changed files with 14 additions and 13 deletions

View file

@ -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