Merge branch 'develop' into gun
[akkoma] / lib / pleroma / web / common_api / common_api.ex
index 091011c6b1082abf268221c2b80c2a4169e66cf8..2646b9f7b8887c31cc685e54c4c3a68be15da0c6 100644 (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