diff options
author | feld <feld@feld.me> | 2020-08-25 21:32:32 +0000 |
---|---|---|
committer | feld <feld@feld.me> | 2020-08-25 21:32:32 +0000 |
commit | fb33321fa2b3638af1c1edc35de1e4d23ba18711 (patch) | |
tree | 53fe5e1774537d984c0c7443f5eb0d7ebf04442f /lib/pleroma/web/common_api/common_api.ex | |
parent | 976094cd7bdeed740a3dce8b8aac029d06603ed3 (diff) | |
parent | 25c69e271a3ea6687805e0bd0d4b902cda06e364 (diff) | |
download | pleroma-fb33321fa2b3638af1c1edc35de1e4d23ba18711.tar.gz |
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
Diffstat (limited to 'lib/pleroma/web/common_api/common_api.ex')
-rw-r--r-- | lib/pleroma/web/common_api/common_api.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/common_api/common_api.ex b/lib/pleroma/web/common_api/common_api.ex index a8141b28f..5ad2b91c2 100644 --- a/lib/pleroma/web/common_api/common_api.ex +++ b/lib/pleroma/web/common_api/common_api.ex @@ -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 |