Ignored User Reply Notifications

This commit is contained in:
Wyatt Johnson
2018-04-10 17:33:56 -06:00
parent 46078117c8
commit 2e74f79b79
2 changed files with 17 additions and 4 deletions
+2 -2
View File
@@ -29,9 +29,9 @@ const User = {
return Comments.getByQuery(query);
},
ignoredUsers({ ignoresUsers }, args, { user, loaders: { Users } }) {
ignoredUsers({ ignoresUsers }, args, { loaders: { Users } }) {
// Return nothing if there is nothing to query for.
if (!user.ignoresUsers || user.ignoresUsers.length <= 0) {
if (!ignoresUsers || ignoresUsers.length <= 0) {
return [];
}