aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/web/user/notification.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/routers/web/user/notification.go b/routers/web/user/notification.go
index e12b41e649..e0aa92879f 100644
--- a/routers/web/user/notification.go
+++ b/routers/web/user/notification.go
@@ -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") {
@@ -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,