Skip to content

Commit

Permalink
changed to use cached statuses to show reply chain.
Browse files Browse the repository at this point in the history
  • Loading branch information
jugyo committed Jan 24, 2010
1 parent 423c0e9 commit 5c19128
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/plugins/defaults/stdout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ def status_line(s, time_format, event, indent = 0)
indent += 1
unless indent > config.plugins.stdout.max_indent_level
begin
status = Termtter::API.twitter.show(s.in_reply_to_status_id)
text << status_line(status, time_format, event, indent)
if status = Termtter::API.twitter.cached_status(s.in_reply_to_status_id)
text << status_line(status, time_format, event, indent)
end
rescue Rubytter::APIError
end
end
Expand Down

0 comments on commit 5c19128

Please sign in to comment.