mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
fix: trim the whitespaces for the search keyword (#893)
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user