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

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-10-09 11:07:51 +02:00 committed by backportbot[bot]
parent 95704cdf57
commit bc2bd4cf7b

View file

@ -200,8 +200,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