We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14c87fe commit dbedbf6Copy full SHA for dbedbf6
web.go
@@ -476,7 +476,7 @@ func prDetailHandler(w http.ResponseWriter, r *http.Request) {
476
w.WriteHeader(http.StatusUnprocessableEntity)
477
return
478
}
479
- slices.SortFunc[[]*EventLog](logs, func(a *EventLog, b *EventLog) int {
+ slices.SortFunc(logs, func(a *EventLog, b *EventLog) int {
480
return a.CreatedAt.Compare(b.CreatedAt)
481
})
482
@@ -498,7 +498,7 @@ func prDetailHandler(w http.ResponseWriter, r *http.Request) {
498
IsAdmin: web.Backend.IsAdmin(pk),
499
Pubkey: user.Pubkey,
500
},
501
- Date: pr.CreatedAt.Format(web.Backend.Cfg.TimeFormat),
+ Date: eventlog.CreatedAt.Format(web.Backend.Cfg.TimeFormat),
502
503
504
0 commit comments