mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Adding author info to comments and author name display.
This commit is contained in:
@@ -35,7 +35,7 @@ router.get('/', (req, res, next) => {
|
||||
return Promise.all([
|
||||
[asset],
|
||||
comments,
|
||||
User.findByIdArray(comments.map((comment) => comment.author_id)),
|
||||
User.findPublicByIdArray(comments.map((comment) => comment.user_id)),
|
||||
Action.getActionSummaries(comments.map((comment) => comment.id))
|
||||
]);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user