1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-09-06 11:46:24 -07:00

Make OPs use the correct thumbnail

This commit is contained in:
Eggbertx 2023-07-14 17:53:26 -07:00
parent 53d5c877ed
commit 686c6fc004

View file

@ -103,10 +103,7 @@ func (p Post) ThumbnailPath() string {
if p.Filename == "" {
return ""
}
thumbnail, catalogThumbnail := uploads.GetThumbnailFilenames(p.Filename)
if p.IsTopPost {
return config.WebPath(p.BoardDir, "thumb", catalogThumbnail)
}
thumbnail, _ := uploads.GetThumbnailFilenames(p.Filename)
return config.WebPath(p.BoardDir, "thumb", thumbnail)
}