Changeset 82fd1e6


Ignore:
Timestamp:
Jul 21, 2009, 10:19:39 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
39dd366
Parents:
d748296
Message:
Default since_id to 1, not 0.

For some reason, {since_id => 0} makes friends_timeline return no
results.
File:
1 edited

Legend:

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

    r7430aa4 r82fd1e6  
    6262            $self->{last_id} = $self->{twitter}->friends_timeline({count => 1})->[0]{id};
    6363        };
    64         $self->{last_id} = 0 unless defined($self->{last_id});
     64        $self->{last_id} = 1 unless defined($self->{last_id});
    6565    }
    6666
     
    6969            $self->{last_direct} = $self->{twitter}->direct_messages()->[0]{id};
    7070        };
    71         $self->{last_direct} = 0 unless defined($self->{last_direct});
     71        $self->{last_direct} = 1 unless defined($self->{last_direct});
    7272    }
    7373
Note: See TracChangeset for help on using the changeset viewer.