Skip to content

Commit 946b718

Browse files
committed
perf: only fetch emojis for filtered discussions
1 parent 129b83b commit 946b718

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/app/list_discussions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (a discussionsListerService) ServeHTTP(w http.ResponseWriter, r *http.Reque
123123

124124
/* Collect IDs in order to fetch emojis */
125125
var noteIds []int64
126-
for _, discussion := range discussions {
126+
for _, discussion := range slices.Concat(linkedDiscussions, unlinkedDiscussions) {
127127
for _, note := range discussion.Notes {
128128
noteIds = append(noteIds, note.ID)
129129
}

0 commit comments

Comments
 (0)