mirror of
https://github.com/glanceapp/glance.git
synced 2025-02-22 21:30:47 +01:00
Fix trying to load incorrect thumbnail if post marked nsfw
This commit is contained in:
parent
e3bdc73013
commit
49a0758aae
@ -226,7 +226,7 @@ func fetchSubredditPosts(subreddit, sort, topPeriod, search, commentsUrlTemplate
|
|||||||
TimePosted: time.Unix(int64(post.Time), 0),
|
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
|
forumPost.ThumbnailUrl = post.Thumbnail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user