Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Twitter] pagination did not work for RT.

  • Loading branch information...
commit 6f229b1b0dbeeeb271ac87701ae40d806671b341 1 parent 52c1d93
@nahi authored
View
2  app/helpers/entry_helper.rb
@@ -471,7 +471,7 @@ def twitter_reply_to(entry)
def retweet_rel_link(entry)
if id = entry.twitter_retweeted_by_status_id
- opt = link_show(id)
+ opt = link_show(entry.twitter_retweeted_by_status_id)
name = entry.twitter_retweeted_by
h(' RT by ') + link_to(h(name), opt, :class => 'hlink')
elsif id = entry.buzz_reshared_id
View
4 app/models/entry.rb
@@ -1185,6 +1185,10 @@ def dummy?
@date.nil?
end
+ def id_for_max
+ twitter_retweeted_by_status_id || id
+ end
+
private
def wrap_likes(likes)
View
2  app/models/feed.rb
@@ -51,7 +51,7 @@ def find(opt = {})
unless feed.entries.empty?
threads.from_modified = feed.entries.last.modified
threads.to_modified = feed.entries.first.modified
- threads.max_id = feed.entries.last.id
+ threads.max_id = feed.entries.last.id_for_max
end
threads.pins = pins
feed.entries = threads
Please sign in to comment.
Something went wrong with that request. Please try again.