Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion routers/web/user/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,9 @@ func NotificationWatching(ctx *context.Context) {
page = 1
}

keyword := ctx.FormTrim("q")
ctx.Data["Keyword"] = keyword

var orderBy db.SearchOrderBy
ctx.Data["SortType"] = ctx.FormString("sort")
switch ctx.FormString("sort") {
Expand Down Expand Up @@ -378,7 +381,7 @@ func NotificationWatching(ctx *context.Context) {
Page: page,
},
Actor: ctx.Doer,
Keyword: ctx.FormTrim("q"),
Keyword: keyword,
OrderBy: orderBy,
Private: ctx.IsSigned,
WatchedByID: ctx.Doer.ID,
Expand Down