Add missing spoiler thumbnail

This commit is contained in:
Christopher Gurnee 2022-12-18 16:18:38 +00:00
parent cb316a541e
commit 1941879ad5
3 changed files with 8 additions and 2 deletions

2
dist/main.css vendored

File diff suppressed because one or more lines are too long

View file

@ -37,6 +37,12 @@
background-repeat: no-repeat
height: 50px
.thumbnail-spoiler
background-image: url("https://www.redditstatic.com/sprite-reddit.6Om8v6KMv28.png")
background-position: 0px -1211px
background-repeat: no-repeat
height: 50px
.thread-score-box
margin: 0 7px
width: 43px

View file

@ -35,7 +35,7 @@ export const isDeleted = textBody => textBody === '\\[deleted\\]' || textBody ==
export const isRemoved = textBody => textBody === '\\[removed\\]' || textBody === '[removed]' || textBody === '[ Removed by Reddit ]'
// Default thumbnails for reddit threads
export const redditThumbnails = ['self', 'default', 'image', 'nsfw']
export const redditThumbnails = ['self', 'default', 'image', 'nsfw', 'spoiler']
// Parse comments (see https://www.reddit.com/dev/api/#response_body_encoding)
export const parse = text => markdown.render(text.replaceAll('&lt;', '<').replaceAll('&gt;', '>').replaceAll('&amp;', '&'))