Changeset 5d59c1e for perl/modules/Twitter/lib/BarnOwl/Message/Twitter.pm
- Timestamp:
- May 29, 2010, 1:42:02 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 2f25537
- Parents:
- d27ecf3
- git-author:
- Nelson Elhage <nelhage@mit.edu> (05/26/10 22:46:35)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (05/29/10 13:42:02)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/modules/Twitter/lib/BarnOwl/Message/Twitter.pm
rf6413c3 r5d59c1e 17 17 sub service { return (shift->{"service"} || "http://twitter.com"); } 18 18 sub account { return shift->{"account"}; } 19 sub retweeted_by { shift->{retweeted_by}; } 19 20 sub long_sender { 20 21 my $self = shift; 21 22 $self->service =~ m#^\s*(.*?://.*?)/.*$#; 22 23 my $service = $1 || $self->service; 23 return $service . '/' . $self->sender 24 my $long = $service . '/' . $self->sender; 25 if ($self->retweeted_by) { 26 $long = "(retweeted by " . $self->retweeted_by . ") $long"; 27 } 28 return $long; 24 29 } 25 30
Note: See TracChangeset
for help on using the changeset viewer.