Changeset 7ec65f5


Ignore:
Timestamp:
Oct 29, 2009, 9:52:52 PM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
118d800
Parents:
fe184d4
Message:
Don't allow updates of > 140 characters.

Twitter seems to have recently stopped truncating these messages, and
started just dropping them on the floor. This is very confusing, and
so check for them on our end.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/BarnOwl/Module/Twitter/Handle.pm

    r26f9e2e r7ec65f5  
    215215        $self->twitter_direct($1, $2);
    216216    } elsif(defined $self->{twitter}) {
     217        if(length($msg) > 140) {
     218            die("Twitter: Message over 140 characters long.\n");
     219        }
    217220        if(defined($reply_to)) {
    218221            $self->{twitter}->update({
Note: See TracChangeset for help on using the changeset viewer.