Color comments '[ Removed by Reddit ]' as removed

This commit is contained in:
Christopher Gurnee 2022-06-13 16:25:48 +00:00
parent c47103b28a
commit d6c0fc65d3

View file

@ -25,7 +25,7 @@ export const sleep = ms =>
export const isDeleted = textBody => textBody === '\\[deleted\\]' || textBody === '[deleted]'
// Reddits way of indicating that something is deleted
export const isRemoved = textBody => textBody === '\\[removed\\]' || textBody === '[removed]'
export const isRemoved = textBody => textBody === '\\[removed\\]' || textBody === '[removed]' || textBody === '[ Removed by Reddit ]'
// Default thumbnails for reddit threads
export const redditThumbnails = ['self', 'default', 'image', 'nsfw']