tumblr.isRepost() always returns a boolean
This commit is contained in:
parent
9b9d25504e
commit
baebe7d5aa
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user