diff options
author | Sergey Suprunenko <suprunenko.s@gmail.com> | 2020-08-17 00:07:23 +0200 |
---|---|---|
committer | Sergey Suprunenko <suprunenko.s@gmail.com> | 2020-08-17 00:11:33 +0200 |
commit | 25c69e271a3ea6687805e0bd0d4b902cda06e364 (patch) | |
tree | 741282e22dfcb5cdcf1603fd1718db02574d2384 /lib/pleroma/web/common_api/common_api.ex | |
parent | 0865f36965f1583085af3a424dbbc89de724fd33 (diff) | |
download | pleroma-25c69e271a3ea6687805e0bd0d4b902cda06e364.tar.gz |
Make notifications about new statuses from muted threads read
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 |