Populate Assignees while adding posts to a thread (#13882)

This commit is contained in:
Mohit Yadav 2023-11-07 18:31:21 +05:30 committed by GitHub
parent ca7a04a457
commit 5989b99536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,6 +411,10 @@ public class FeedRepository {
// Update the thread with the new post
Thread thread = EntityUtil.validate(id, dao.feedDAO().findById(id), Thread.class);
// Populate Assignees if type is task
populateAssignees(thread);
thread.withUpdatedBy(userName).withUpdatedAt(System.currentTimeMillis());
FeedUtil.addPost(thread, post);
dao.feedDAO().update(id, JsonUtils.pojoToJson(thread));