refactor: inline imageurl in go callers
This commit is contained in:
@@ -388,7 +388,7 @@ func (h *AnimeHandler) HandleQuickSearch(c *gin.Context) {
|
||||
Title: anime.DisplayTitle(),
|
||||
Type: anime.Type,
|
||||
Year: anime.Year,
|
||||
Image: anime.ImageURL(),
|
||||
Image: anime.Images.Webp.LargeImageURL,
|
||||
InWatchlist: watchlistMap[int64(anime.MalID)],
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ func (h *AnimeHandler) searchAnimeResults(c *gin.Context, userID string, query s
|
||||
Label: anime.DisplayTitle(),
|
||||
Subtitle: strings.TrimSpace("Anime " + anime.Type),
|
||||
Href: fmt.Sprintf("/anime/%d", anime.MalID),
|
||||
Image: anime.ImageURL(),
|
||||
Image: anime.Images.Webp.LargeImageURL,
|
||||
InWatchlist: watchlistMap[int64(anime.MalID)],
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user