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
parent 8ab5cf4009
commit d659cbcd0e

View File

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