プロジェクト

全般

プロフィール

提案 #1309 » 1309-load-more-twitter-fix-usertl.patch

cob odo, 2019-03-24 23:08

差分を表示:

core/plugin/twitter_load_more/twitter_load_more.rb
19 19
      }
20 20
      world.mentions(params).next(&adder).terminate("twitter_load_more: reply の追加取得に失敗しました")
21 21
    elsif timeline(tl_slug).parent.is_a?(Plugin::GUI::Fragment)
22
      oldest = timeline(tl_slug).min {|a, b| a.modified.to_i <=> b.modified.to_i }
22
      idname = timeline(tl_slug).parent.slug.to_s.match(%r!\Ausertimeline_https://twitter\.com/(.*)_\d+_[0-9a-z]+_[0-9a-z]+\z!){|m| m[1]}
23
      oldest = timeline(tl_slug).select {|m| m.user.idname == idname }.min {|a, b| a.modified.to_i <=> b.modified.to_i }
23 24
      fragment_slug = timeline(tl_slug).parent.slug
24 25
      %r!\Ausertimeline_(.+)_[0-9]+_[0-9A-Fa-f]{8}_[0-9A-Fa-f]{8}\z!.match(fragment_slug.to_s) do |m|
25 26
        params = {
(2-2/2)