refactor: replace discover for-you swap with targeted htmx fragment

This commit is contained in:
2026-06-04 11:00:40 +02:00
committed by Milas Holsting
parent 41be636c4d
commit d82eeecfc0
2 changed files with 19 additions and 3 deletions

View File

@@ -256,7 +256,7 @@ func (h *AnimeHandler) HandleDiscoverForYou(c *gin.Context) {
watchlistMap := h.watchlistMapForAnimes(c.Request.Context(), userID, data.Animes)
data.Section = "ForYou"
data.Fragment = "discover_row"
data.Fragment = "discover_for_you_section"
data.WatchlistMap = watchlistMap
c.HTML(http.StatusOK, "discover.gohtml", data)
}