mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 20:02:09 +00:00
fix: trim the whitespaces for the search keyword (#893)
This commit is contained in:
parent
55f2059f71
commit
3576e1ee73
7 changed files with 14 additions and 11 deletions
|
@ -40,7 +40,7 @@ func GetNotificationCount(c *context.Context) {
|
|||
// Notifications is the notifications page
|
||||
func Notifications(c *context.Context) {
|
||||
var (
|
||||
keyword = c.Query("q")
|
||||
keyword = strings.Trim(c.Query("q"), " ")
|
||||
status models.NotificationStatus
|
||||
page = c.QueryInt("page")
|
||||
perPage = c.QueryInt("perPage")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue