Fix trying to load incorrect thumbnail if post marked nsfw

This commit is contained in:
Svilen Markov 2024-12-07 08:57:51 +00:00
parent e3bdc73013
commit 49a0758aae

View File

@ -226,7 +226,7 @@ func fetchSubredditPosts(subreddit, sort, topPeriod, search, commentsUrlTemplate
TimePosted: time.Unix(int64(post.Time), 0),
}
if post.Thumbnail != "" && post.Thumbnail != "self" && post.Thumbnail != "default" {
if post.Thumbnail != "" && post.Thumbnail != "self" && post.Thumbnail != "default" && post.Thumbnail != "nsfw" {
forumPost.ThumbnailUrl = post.Thumbnail
}