This commit is contained in:
Liang Ding 2022-10-05 21:23:29 +08:00
parent ef5a911f57
commit 73d9411b47
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -362,7 +362,7 @@ func GetBacklink2(id, keyword, mentionKeyword string, sortMode, mentionSortMode
}
sort.Slice(backmentions, func(i, j int) bool {
switch sortMode {
switch mentionSortMode {
case util.SortModeUpdatedDESC:
return backmentions[i].Updated > backmentions[j].Updated
case util.SortModeUpdatedASC: