From bc2bd4cf7baa3952c1c4c83bcaa3996e11959487 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 9 Oct 2025 11:07:51 +0200 Subject: [PATCH] fix(comments): Support user IDs that are numbers, e.g. "42" Signed-off-by: Joas Schilling --- apps/comments/src/views/Comments.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/comments/src/views/Comments.vue b/apps/comments/src/views/Comments.vue index 39ee7ad07f1..20204a1109c 100644 --- a/apps/comments/src/views/Comments.vue +++ b/apps/comments/src/views/Comments.vue @@ -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