tumblr.isRepost() always returns a boolean

This commit is contained in:
Dakedres 2024-05-28 22:20:03 -06:00
parent 9b9d25504e
commit baebe7d5aa

View File

@ -27,7 +27,7 @@ tumblr.createSource = (user, options, postReducerCallback, cache) => {
tumblr.isRepost = (post) => {
let reblog = post.description.querySelector('p > a.tumblr_blog')
return reblog && reblog.innerHTML !== post.source.user
return reblog ? reblog.innerHTML !== post.source.user : false
}
tumblr.matchesTags = (post, whitelist, blacklist) => {