Changeset 6852f37 in lab.git for Dev/twitter


Ignore:
Timestamp:
Sep 23, 2012 12:40:42 PM (12 years ago)
Author:
mitty <mitty@…>
Branches:
master, trunk
Children:
43d739e
Parents:
52c76fd
Message:
  • fix search query does not return user/screen_name and user/name
  • use from_user and from_user_name instead

git-svn-id: https://lab.mitty.jp/svn/lab/trunk@165 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/twitter/dump_timeline.pl

    r52c76fd r6852f37  
    9999                my $text = ""; 
    100100                $text .= "(". $status->{id} . ") "; 
    101                 $text .= $status->{user}{screen_name} . "|"; 
    102                 $text .= $status->{user}{name}; 
     101                $text .= ($status->{user}{screen_name}) ? 
     102                    $status->{user}{screen_name} : $status->{from_user}; 
     103                $text .= "|"; 
     104                $text .= ($status->{user}{name}) ? 
     105                    $status->{user}{name} : $status->{from_user_name}; 
    103106                $text .= " [" . $status->{created_at} . "]"; 
    104107                $text .= " ".  $status->{text}; 
Note: See TracChangeset for help on using the changeset viewer.