Fix: artwork page

This commit is contained in:
VnPower 2023-06-16 20:44:18 +07:00
parent 1387ef13fd
commit 3bcd799c38
Signed by: vnpower
GPG key ID: 881DE3DEB966106C

View file

@ -72,7 +72,7 @@ func (p *PixivClient) GetArtworkByID(id string) (*models.Illust, error) {
illust.Images = images
// Get recent artworks
ids := make([]int, len(illust.Recent))
ids := make([]int, 0)
for k := range illust.Recent {
ids = append(ids, k)