edas / TweetDeletion

Remove old tweets
MIT License
51 stars 7 forks source link

:me doesn't work for mastodon #7

Closed er-vin closed 5 years ago

er-vin commented 5 years ago

I got a bunch of rules including "by(:me)" in their construct. They work as expected for Twitter, but they're never hit for Mastodon. Likewise for rules containing fav_by(:me) or rt_by(:me).

I'm not sure how to debug that or get you more information. Guidance welcome.

edas commented 5 years ago

Hi

Thank you for your report.

Do you have a minimal exemple of configuration that doesn't work as expected ? if possible a toot that does not validate your config ?

er-vin commented 5 years ago

I wish... I noticed because some of them are gone which I didn't expect to go away. But one of the rules in question is: keep_if (by(:me) and contains("sketch")), tag:" S "

And it still delete toots I posted containing that word. On the mastodon side it's gone for good, but the equivalent example on the Twitter side (I cross-post all) is: https://twitter.com/dr_ervin/status/1091696558742138881

er-vin commented 5 years ago

And indeed something is weird, if I do the poor man debugging, that is adding "print(account_name)" at the entrance of the accounts loop, I indeed see "ervin@mamot.fr", now if I add "print(tweet.account_name)" in the for_tweets loop I get "acct@" which looks wrong.

er-vin commented 5 years ago

Probably can be closed now that #8 went in.

edas commented 5 years ago

Thank you for your help