mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(comments): Support user IDs that are numbers, e.g. "42"
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
95704cdf57
commit
bc2bd4cf7b
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue