バグ #1157 » 1157.diff
core/plugin/followingcontrol/followingcontrol.rb | ||
---|---|---|
container.ssc_atonce :expose_event do
|
||
loading_image = Gtk::Image.new(Skin['loading.png'].pixbuf(width: 128, height: 128))
|
||
container.add(loading_image.show_all)
|
||
Service.primary.followings(cache: true, user_id: model[:id]).next{ |users|
|
||
Enumerator.new{|y|
|
||
Plugin.filtering(:worlds, y)
|
||
}.select{|world|
|
||
world.class.slug == :twitter
|
||
}.first.followings(cache: true, user_id: model[:id]).next{ |users|
|
||
container.remove(loading_image)
|
||
loading_image = nil
|
||
container.add(userlist.show_all)
|
||
... | ... | |
container.ssc_atonce :expose_event do
|
||
loading_image = Gtk::Image.new(Skin['loading.png'].pixbuf(width: 128, height: 128))
|
||
container.add(loading_image.show_all)
|
||
Service.primary.followers(cache: true, user_id: model[:id]).next{ |users|
|
||
Enumerator.new{|y|
|
||
Plugin.filtering(:worlds, y)
|
||
}.select{|world|
|
||
world.class.slug == :twitter
|
||
}.first.followers(cache: true, user_id: model[:id]).next{ |users|
|
||
container.remove(loading_image)
|
||
loading_image = nil
|
||
container.add(userlist.show_all)
|
core/plugin/list_for_profile/profiletab.rb | ||
---|---|---|
iter[SERVICE] = service end
|
||
toggled = get_column(0).cell_renderers[0]
|
||
toggled.activatable = false
|
||
Service.primary.list_user_followers(user_id: @dest_user[:id], filter_to_owned_lists: 1).next{ |res|
|
||
Enumerator.new{|y|
|
||
Plugin.filtering(:worlds, y)
|
||
}.select{|world|
|
||
world.class.slug == :twitter
|
||
}.first.list_user_followers(user_id: @dest_user[:id], filter_to_owned_lists: 1).next{ |res|
|
||
if res and not destroyed?
|
||
followed_list_ids = res.map{|list| list['id'].to_i}
|
||
model.each{ |m, path, iter|
|
core/plugin/user_detail_view/user_detail_view.rb | ||
---|---|---|
order do |message|
|
||
retweet = message.retweeted_statuses.find{ |r| user_id == r.user.id }
|
||
(retweet || message)[:created].to_i end end
|
||
Service.primary.user_timeline(user_id: user_id, include_rts: 1, count: [UserConfig[:profile_show_tweet_once], 200].min).next{ |tl|
|
||
Enumerator.new{|y|
|
||
Plugin.filtering(:worlds, y)
|
||
}.select{|world|
|
||
world.class.slug == :twitter
|
||
}.first.user_timeline(user_id: user_id, include_rts: 1, count: [UserConfig[:profile_show_tweet_once], 200].min).next{ |tl|
|
||
i_timeline << tl
|
||
}.terminate(_("@%{user} の最近のつぶやきが取得できませんでした。見るなってことですかね") % {user: model[:idname]})
|
||
timeline_storage[i_timeline.slug] = model end
|