YoloSwagTeam / t2m

Twitter to Mastodon timeline forwarding tool
GNU General Public License v3.0
76 stars 15 forks source link

Add toot length check before tooting #20

Closed Tvax closed 6 years ago

Tvax commented 6 years ago

Referencing #18 Check the size of the text before tooting, if it's greater than 500 it doesn't send it to Mastodon.

zoski commented 6 years ago

Nice.

Could be nice if t2m could split the tweet into 2 toots of only put a small caption and link to the tweet. In that way no informations are lost in the process.

Thank you for the fix ;-)

Regards

Tvax commented 6 years ago

I reverted the changes I did, so it now calls the checking part only if it's a quoted tweet, because that's the only case in which a tweet can be bigger than 500 chars.

If it is bigger it replaces the content of the quoted tweet by "Quoted tweet's link below", I guess that should do it.

Psycojoker commented 6 years ago

Thanks for this contribution :heart:

That looks like an acceptable solution :)

Psycojoker commented 6 years ago

Fyi I had to re-do your commit (with you as author) after merging https://github.com/YoloSwagTeam/t2m/pull/13 because the code was waaaay too different :/