Last active
August 29, 2015 13:56
-
-
Save toshia/8970188 to your computer and use it in GitHub Desktop.
あっきぃの最近のツイートが見えない不具合の次善策
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# あっきぃの最近のツイートが見えない不具合の次善策です。 | |
# 現象: 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