klausi / mastodon-twitter-sync

Synchronizes posts from Mastodon to Twitter and back
GNU General Public License v3.0
248 stars 26 forks source link

"403 Forbidden" while posting from Mastodon to Twitter #57

Open Utopiah opened 1 year ago

Utopiah commented 1 year ago

Unfortunately while trying to append the source Mastodon URL, e.g https://mastodon.pirateparty.be/@utopiah/109535657181487476 , posting fails with

    {                                                                                                                                                                            
        "date": "Sun, 18 Dec 2022 16:38:16 GMT",                                                                                                                                         
        "perf": "7626143928",                                                                                                                                                    
        "pragma": "no-cache",                                                                                                                                                            
        "server": "tsa_f",                                                                                                                                                       
        "status": "403 Forbidden",  

...

TwitterErrorCode {                                                                                                                                                   
                message: "We can't complete this request because this link has been identified by Twitter or our partners as being potentially harmful. Visit our Help Center to learn more.",                                                                                                                                                                            
                code: 429,     

because of a site-wide decision to block all mastodon instances.

Consequently it might be good (sigh) to avoid whenever possible pointing back (at least temporarily) to Mastodon URLs otherwise nothing gets posted.

Utopiah commented 1 year ago

To be honest I'm not sure what the logic is because ironically enough my previous test worked https://twitter.com/utopiah/status/1604511405193007111 despite actually including a Mastodon link (your profile) https://mastodon.pirateparty.be/@utopiah/109535556229407085 whereas this Toot didn't.

Utopiah commented 1 year ago

FWIW that's a rather active topic at the moment https://twitter.com/TwitterSupport/status/1604531268493795329 so not sure what the "right" thing to do is.

klausi commented 1 year ago

It seems like Twitter is allowing links to Mastodon servers now again. So maybe we don't need to do anything? I will leave this open for a bit, let me know if you still see your posts with links being blocked.