Use ghost user if user was not found (#29161) (#29169)

Backport #29161
This commit is contained in:
KN4CK3R authored and GitHub committed 2024-02-14 12:51:51 -05:00
1 parent dd8bc1d61d
commit d823465d94
2 files changed
+12

No files matched your search

+4
View File
@@ -225,6 +225,10 @@ func (comments CommentList) loadAssignees(ctx context.Context) error {
for _, comment := range comments {
comment.Assignee = assignees[comment.AssigneeID]
if comment.Assignee == nil {
comment.AssigneeID = user_model.GhostUserID
comment.Assignee = user_model.NewGhostUser()
}
}
return nil
}