mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 22:21:45 +08:00
Fix admin user stream bug
This commit is contained in:
@@ -100,7 +100,7 @@ const getCommentsByQuery = ({user}, {ids, statuses, asset_id, parent_id, author_
|
||||
});
|
||||
}
|
||||
|
||||
if (user && (user.hasRoles('ADMIN') || user.id === author_id)) {
|
||||
if (user && (user.hasRoles('ADMIN') || user.id === author_id) && author_id != null) {
|
||||
comments = comments.where({author_id});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user