mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-21 18:31:24 +02:00
Fix broken reddit video & nsfw post thumbnails
This commit is contained in:
parent
f18620d890
commit
e546488aeb
@ -111,8 +111,8 @@ 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 = html.UnescapeString(post.Thumbnail)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !post.IsSelf {
|
if !post.IsSelf {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user