mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-20 20:07:03 +01:00
Backport #23564 by @silverwind The `q` parameter was not rendered in pagination links because `context.Pagination:AddParam` checks for existance of the parameter in `ctx.Data` where it was absent. Added the parameter there to fix it. Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
parent
782c376c8b
commit
4439a68911
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue