Fix broken reddit video & nsfw post thumbnails

pull/311/head
Svilen Markov 2024-12-26 13:20:03 +07:00
parent f18620d890
commit e546488aeb
1 changed files with 2 additions and 2 deletions

@ -111,8 +111,8 @@ func FetchSubredditPosts(subreddit, sort, topPeriod, search, commentsUrlTemplate
TimePosted: time.Unix(int64(post.Time), 0),
}
if post.Thumbnail != "" && post.Thumbnail != "self" && post.Thumbnail != "default" {
forumPost.ThumbnailUrl = post.Thumbnail
if post.Thumbnail != "" && post.Thumbnail != "self" && post.Thumbnail != "default" && post.Thumbnail != "nsfw" {
forumPost.ThumbnailUrl = html.UnescapeString(post.Thumbnail)
}
if !post.IsSelf {