mirror of
https://github.com/Xevion/glance.git
synced 2026-01-31 06:24:26 -06:00
Fix broken reddit video thumbnail URLs
This commit is contained in:
@@ -227,7 +227,7 @@ func fetchSubredditPosts(subreddit, sort, topPeriod, search, commentsUrlTemplate
|
|||||||
}
|
}
|
||||||
|
|
||||||
if post.Thumbnail != "" && post.Thumbnail != "self" && post.Thumbnail != "default" && post.Thumbnail != "nsfw" {
|
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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user