Fix muted user can still see my posts

This commit is contained in:
mattwr18 2020-01-22 10:34:10 +01:00
parent e639358557
commit 3354174a53

View File

@ -20,7 +20,7 @@ export default {
AND NOT (
author.deleted = true OR author.disabled = true
OR resource.deleted = true OR resource.disabled = true
OR (:User { id: $thisUserId })-[:MUTED]-(author)
OR (:User { id: $thisUserId })-[:MUTED]->(author)
)
WITH resource, author,
[(resource)<-[:COMMENTS]-(comment:Comment) | comment] as comments,