fix(task): do not parse task comment reactions so that they actually

appear

Resolves https://github.com/go-vikunja/vikunja/issues/1343
This commit is contained in:
kolaente 2025-08-31 21:24:49 +02:00
parent 14e1bd2f55
commit 3baf6cd477
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 2 deletions

View File

@ -151,8 +151,10 @@ export default class TaskModel extends AbstractModel<ITask> implements ITask {
this.updated = new Date(this.updated)
this.projectId = Number(this.projectId)
this.comments = this.comments.map(c => new TaskCommentModel(c))
// If we would use the camel cased value here, it would lose the reactions - emojis can't be camel cased.
// The comments will be camel cased anyway in the constructor of the task comment model.
this.comments = (data.comments || []).map(c => new TaskCommentModel(c))
// We can't convert emojis to camel case, hence we do this manually
this.reactions = {}