Show search content in page title for /feed too
Cette révision appartient à :
Parent
0d01bbfde8
révision
a9f7fbb90f
1 fichiers modifiés avec 7 ajouts et 1 suppressions
|
@ -39,6 +39,7 @@ func getTorrentList(c *gin.Context) (torrents []models.Torrent, createdAsTime ti
|
|||
title = "Sukebei Pantsu"
|
||||
}
|
||||
|
||||
|
||||
pagenum := 1
|
||||
if page == "" && offset > 0 { // first page for offset is 0
|
||||
pagenum = offset + 1
|
||||
|
@ -86,7 +87,12 @@ func getTorrentList(c *gin.Context) (torrents []models.Torrent, createdAsTime ti
|
|||
user = 0
|
||||
}
|
||||
|
||||
_, torrents, _, err = search.AuthorizedQuery(c, pagenum, currentUser.CurrentOrJanitor(uint(user)), currentUser.CurrentOrJanitor(uint(user)))
|
||||
var searchParam search.TorrentParam
|
||||
searchParam, torrents, _, err = search.AuthorizedQuery(c, pagenum, currentUser.CurrentOrJanitor(uint(user)), currentUser.CurrentOrJanitor(uint(user)))
|
||||
|
||||
if searchParam.NameLike != "" {
|
||||
title += " - " + searchParam.NameLike
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
|
Référencer dans un nouveau ticket