Fix broken reddit video thumbnail URLs
This commit is contained in:
parent
b4b61c94d7
commit
0702e0abd3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue