Merge branch 'feature/1952-read-muted-notifications' into 'develop'

Automatically mark notifications about statuses from muted users and threads as read

Closes #1952

See merge request pleroma/pleroma!2893
This commit is contained in:
feld 2020-08-25 21:32:32 +00:00
commit fb33321fa2
5 changed files with 21 additions and 4 deletions

View file

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