バグ #1157 » 1157.diff
core/plugin/followingcontrol/followingcontrol.rb | ||
---|---|---|
75 | 75 |
container.ssc_atonce :expose_event do |
76 | 76 |
loading_image = Gtk::Image.new(Skin['loading.png'].pixbuf(width: 128, height: 128)) |
77 | 77 |
container.add(loading_image.show_all) |
78 |
Service.primary.followings(cache: true, user_id: model[:id]).next{ |users| |
|
78 |
Enumerator.new{|y| |
|
79 |
Plugin.filtering(:worlds, y) |
|
80 |
}.select{|world| |
|
81 |
world.class.slug == :twitter |
|
82 |
}.first.followings(cache: true, user_id: model[:id]).next{ |users| |
|
79 | 83 |
container.remove(loading_image) |
80 | 84 |
loading_image = nil |
81 | 85 |
container.add(userlist.show_all) |
... | ... | |
111 | 115 |
container.ssc_atonce :expose_event do |
112 | 116 |
loading_image = Gtk::Image.new(Skin['loading.png'].pixbuf(width: 128, height: 128)) |
113 | 117 |
container.add(loading_image.show_all) |
114 |
Service.primary.followers(cache: true, user_id: model[:id]).next{ |users| |
|
118 |
Enumerator.new{|y| |
|
119 |
Plugin.filtering(:worlds, y) |
|
120 |
}.select{|world| |
|
121 |
world.class.slug == :twitter |
|
122 |
}.first.followers(cache: true, user_id: model[:id]).next{ |users| |
|
115 | 123 |
container.remove(loading_image) |
116 | 124 |
loading_image = nil |
117 | 125 |
container.add(userlist.show_all) |
core/plugin/list_for_profile/profiletab.rb | ||
---|---|---|
25 | 25 |
iter[SERVICE] = service end |
26 | 26 |
toggled = get_column(0).cell_renderers[0] |
27 | 27 |
toggled.activatable = false |
28 |
Service.primary.list_user_followers(user_id: @dest_user[:id], filter_to_owned_lists: 1).next{ |res| |
|
28 |
Enumerator.new{|y| |
|
29 |
Plugin.filtering(:worlds, y) |
|
30 |
}.select{|world| |
|
31 |
world.class.slug == :twitter |
|
32 |
}.first.list_user_followers(user_id: @dest_user[:id], filter_to_owned_lists: 1).next{ |res| |
|
29 | 33 |
if res and not destroyed? |
30 | 34 |
followed_list_ids = res.map{|list| list['id'].to_i} |
31 | 35 |
model.each{ |m, path, iter| |
core/plugin/user_detail_view/user_detail_view.rb | ||
---|---|---|
73 | 73 |
order do |message| |
74 | 74 |
retweet = message.retweeted_statuses.find{ |r| user_id == r.user.id } |
75 | 75 |
(retweet || message)[:created].to_i end end |
76 |
Service.primary.user_timeline(user_id: user_id, include_rts: 1, count: [UserConfig[:profile_show_tweet_once], 200].min).next{ |tl| |
|
76 |
Enumerator.new{|y| |
|
77 |
Plugin.filtering(:worlds, y) |
|
78 |
}.select{|world| |
|
79 |
world.class.slug == :twitter |
|
80 |
}.first.user_timeline(user_id: user_id, include_rts: 1, count: [UserConfig[:profile_show_tweet_once], 200].min).next{ |tl| |
|
77 | 81 |
i_timeline << tl |
78 | 82 |
}.terminate(_("@%{user} の最近のつぶやきが取得できませんでした。見るなってことですかね") % {user: model[:idname]}) |
79 | 83 |
timeline_storage[i_timeline.slug] = model end |