diff options
author | kaniini <ariadne@dereferenced.org> | 2019-07-15 19:46:31 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-07-15 19:46:31 +0000 |
commit | 30d7e22784eaeb36099bd9e7a197b8a9676b6123 (patch) | |
tree | f38624dea67f3001b3ffe79fe5d6b47cf8dfb286 | |
parent | ee5250ae56b5bc0989864420d8e76b0a2734630d (diff) | |
parent | 33fd4c0ed7dd11b87c17424a568c44569797a609 (diff) | |
download | pleroma-30d7e22784eaeb36099bd9e7a197b8a9676b6123.tar.gz pleroma-30d7e22784eaeb36099bd9e7a197b8a9676b6123.zip |
Merge branch 'fix/1091-notifications-query' into 'develop'
Notifications query fix
Closes #1091
See merge request pleroma/pleroma!1427
-rw-r--r-- | lib/pleroma/notification.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index ee7b37aab..d47229258 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -65,7 +65,7 @@ defmodule Pleroma.Notification do |> join(:left, [n, a], tm in Pleroma.ThreadMute, on: tm.user_id == ^user.id and tm.context == fragment("?->>'context'", a.data) ) - |> where([n, a, o, tm], is_nil(tm.id)) + |> where([n, a, o, tm], is_nil(tm.user_id)) end end |