Fix trying to load incorrect thumbnail if post marked nsfw
This commit is contained in:
parent
e3bdc73013
commit
49a0758aae
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue