mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fix(backend): user role in group in notifications (#8552)
Co-authored-by: Max <maxharz@gmail.com>
This commit is contained in:
parent
a9ac75cf0c
commit
35729dfb6a
@ -54,7 +54,7 @@ export default {
|
|||||||
MATCH (resource {deleted: false, disabled: false})-[notification:NOTIFIED]->(user:User {id:$id})
|
MATCH (resource {deleted: false, disabled: false})-[notification:NOTIFIED]->(user:User {id:$id})
|
||||||
${whereClause}
|
${whereClause}
|
||||||
OPTIONAL MATCH (relatedUser:User { id: notification.relatedUserId })
|
OPTIONAL MATCH (relatedUser:User { id: notification.relatedUserId })
|
||||||
OPTIONAL MATCH (resource)<-[membership:MEMBER_OF]-(relatedUser)
|
OPTIONAL MATCH (resource)<-[membership:MEMBER_OF]-(user)
|
||||||
WITH user, notification, resource, membership, relatedUser,
|
WITH user, notification, resource, membership, relatedUser,
|
||||||
[(resource)<-[:WROTE]-(author:User) | author {.*}] AS authors,
|
[(resource)<-[:WROTE]-(author:User) | author {.*}] AS authors,
|
||||||
[(resource)-[:COMMENTS]->(post:Post)<-[:WROTE]-(author:User) | post {.*, author: properties(author), postType: [l IN labels(post) WHERE NOT l = 'Post']} ] AS posts
|
[(resource)-[:COMMENTS]->(post:Post)<-[:WROTE]-(author:User) | post {.*, author: properties(author), postType: [l IN labels(post) WHERE NOT l = 'Post']} ] AS posts
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user