|
|
@@ -92,7 +92,7 @@ func GetAllChannels(c *gin.Context) {
|
|
|
if tag == nil || *tag == "" {
|
|
|
continue
|
|
|
}
|
|
|
- tagChannels, err := model.GetChannelsByTag(*tag, idSort)
|
|
|
+ tagChannels, err := model.GetChannelsByTag(*tag, idSort, false)
|
|
|
if err != nil {
|
|
|
continue
|
|
|
}
|
|
|
@@ -278,7 +278,7 @@ func SearchChannels(c *gin.Context) {
|
|
|
}
|
|
|
for _, tag := range tags {
|
|
|
if tag != nil && *tag != "" {
|
|
|
- tagChannel, err := model.GetChannelsByTag(*tag, idSort)
|
|
|
+ tagChannel, err := model.GetChannelsByTag(*tag, idSort, false)
|
|
|
if err == nil {
|
|
|
channelData = append(channelData, tagChannel...)
|
|
|
}
|
|
|
@@ -1028,7 +1028,7 @@ func GetTagModels(c *gin.Context) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- channels, err := model.GetChannelsByTag(tag, false) // Assuming false for idSort is fine here
|
|
|
+ channels, err := model.GetChannelsByTag(tag, false, false) // idSort=false, selectAll=false
|
|
|
if err != nil {
|
|
|
c.JSON(http.StatusInternalServerError, gin.H{
|
|
|
"success": false,
|