Skip to content

Instantly share code, notes, and snippets.

@toshia
Last active August 29, 2015 13:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toshia/8970188 to your computer and use it in GitHub Desktop.
Save toshia/8970188 to your computer and use it in GitHub Desktop.
あっきぃの最近のツイートが見えない不具合の次善策
# あっきぃの最近のツイートが見えない不具合の次善策です。
# 現象: https://dev.twitter.com/discussions/25939
# 祭会場: http://togetter.com/li/629097
Plugin.create(:avoid_25939) do
profiletab :avoid_25939, "avoid 25939" do
set_icon Skin.get("search.png")
uid = user.id
i_timeline = timeline nil do
order do |message|
retweet = message.retweeted_statuses.find{ |r| uid == r.user.id }
(retweet || message)[:created].to_i end end
notice "check1"
Service.primary.search(q: "from:#{user[:idname]}", rpp: [UserConfig[:profile_show_tweet_once], 100].min).next{ |tl|
notice "check2"
i_timeline << tl
}.terminate("@#{user[:idname]} の最近のつぶやきが取得できませんでした。見るなってことですかね")
notice "check3"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment