gled-rs / mastodon-autofollow

Autofollow bot for mastodon
29 stars 9 forks source link

#nobot in account notes ignored #15

Closed Fusl closed 7 years ago

Fusl commented 7 years ago

It seems the text #nobot is ignored by the bot regardless of the script trying to avoid following those users. This is because the note actually contains #<span>nobot</span> and we're just checking for the text #nobot.

Rushyo commented 7 years ago

Details from dupe #16:

Possibly caused by commit d7075c3?

I suspect the check might want to be #nobot not in rather than not #nobot in, although I'm not sure how Python handles that.

(Note my test case, my profile, intentionally uses #nobotancialgardens, to test for the edge-case where somebody has something like "#nobot." in their bio. Probably not relevant, but worth mentioning).