jugyo / termtter

moved to https://github.com/termtter/termtter
201 stars 34 forks source link

error when updating with a message longer than 140 chars. #95

Open lvm opened 14 years ago

lvm commented 14 years ago

When you make an "update" (or "twit") longer than 140 characters, instead of showing an error letting the user know that this update can't be made, Termtter show the latest update made as the new entry.

For example, the situation would be something like this:

u this is a test.
updated => this is a test
u this is another test, but this one is longer than 140 characters and should notice the user that can't be posted to twitter. and these are a few extra chars to make it longer than 140 characters :-).
updated => this is a test

Sorry if this was already issued as a bug, but I can't read/write japanese :-|, and don't trust translators (usually, these screw up the message with nonsense crap)

jugyo commented 14 years ago

Thank you for report a issue and using termtter :-).

I understand the problem. I think it's because twitter api's behavior was changed. I am considering about the problem. So, please wait.

lvm commented 14 years ago

Hi there, BTW, this happens also when you twit something that you've tweet in the past (!?!). I don't really understand why twitter doesn't allows to twit two (or more) times the same string, but when you do, you get an error, and termtter behaves similar to when you create tweets longer than 140 chars.

Thanks

jugyo commented 14 years ago

Twitter is blocking duplicate tweets :-(. http://www.techcrunch.com/2009/10/14/cleaning-up-the-stream-twitter-kills-duplicate-tweets/

badboy commented 14 years ago

Termtter should make a check on the string length on its own, twitters api isn't returning an error code on too long tweets, but only the last tweet.

Shouldn't be to hard to implement something like

error if msg.size > 140