We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab458ce commit 3cc7f76Copy full SHA for 3cc7f76
models/issues/comment_list.go
@@ -32,7 +32,9 @@ func (comments CommentList) LoadPosters(ctx context.Context) error {
32
}
33
34
for _, comment := range comments {
35
- comment.Poster = getPoster(comment.PosterID, posterMaps)
+ if comment.Poster == nil {
36
+ comment.Poster = getPoster(comment.PosterID, posterMaps)
37
+ }
38
39
return nil
40
models/issues/issue_list.go
@@ -87,7 +87,9 @@ func (issues IssueList) LoadPosters(ctx context.Context) error {
87
88
89
for _, issue := range issues {
90
- issue.Poster = getPoster(issue.PosterID, posterMaps)
+ if issue.Poster == nil {
91
+ issue.Poster = getPoster(issue.PosterID, posterMaps)
92
93
94
95
0 commit comments