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:
parent
53d5c877ed
commit
686c6fc004
1 changed files with 1 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue