Skip to content

reddit-highlight-new-comments: skip comments missing .author element - #8

Open
BeansIsFat wants to merge 2 commits into
Farow:masterfrom
BeansIsFat:patch-1
Open

reddit-highlight-new-comments: skip comments missing .author element#8
BeansIsFat wants to merge 2 commits into
Farow:masterfrom
BeansIsFat:patch-1

Conversation

@BeansIsFat

Copy link
Copy Markdown

Comments that are missing .author element cause the script to fail with a TypeError. This typically happens with comments from users that have blocked the signed-in user.

The post ID is not included in the `.thing.link` class of deleted posts. Since the url always has the ID, we get it there, allowing the script to run on deleted posts.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@BeansIsFat