fix(comments): Support user IDs that are numbers, e.g. "42"

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/55645/head
Joas Schilling 3 months ago
parent 8ab5cf4009
commit d659cbcd0e
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
  1. 7
      apps/comments/src/views/Comments.vue

@ -205,8 +205,13 @@ export default {
this.done = true
}
// Ensure actor id is a string
for (const comment of comments) {
comment.props.actorId = comment.props.actorId.toString()
}
// Insert results
this.comments.push(...comments)
this.comments = [...this.comments, ...comments]
// Increase offset for next fetch
this.offset += DEFAULT_LIMIT

Loading…
Cancel
Save