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

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/55645/head
Joas Schilling 2025-10-09 11:07:51 +07:00
parent 8ab5cf4009
commit d659cbcd0e
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
1 changed files with 6 additions and 1 deletions

@ -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