fix feed empty list rendering

This commit is contained in:
leonincs
2026-04-23 19:00:02 +08:00
parent 89c281c8f0
commit d7a0e2a6b7
10 changed files with 112 additions and 16 deletions

View File

@@ -106,5 +106,8 @@ func (lh *LikeHandler) ListMyLikedVideos(c *gin.Context) {
c.JSON(500, gin.H{"error": err.Error()})
return
}
if videos == nil {
videos = []Video{}
}
c.JSON(200, videos)
}