OSDN Git Service
(root)
/
opentween
/
open-tween.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f920c54
)
APIリミット表示の更新を /statuses/home_timeline が使用された時のみにする
author
Kimura Youichi
<kim.upsilon@bucyou.net>
Wed, 5 Jun 2013 19:21:31 +0000
(
04:21
+0900)
committer
Kimura Youichi
<kim.upsilon@bucyou.net>
Thu, 6 Jun 2013 22:05:08 +0000
(07:05 +0900)
OpenTween/Tween.cs
patch
|
blob
|
history
diff --git
a/OpenTween/Tween.cs
b/OpenTween/Tween.cs
index
477cc99
..
0a1e4f7
100644
(file)
--- a/
OpenTween/Tween.cs
+++ b/
OpenTween/Tween.cs
@@
-9490,7
+9490,11
@@
namespace OpenTween
{
if (sender is TwitterApiStatus11 && this._apiGauge.API11Enabled)
{
- this._apiGauge.ApiLimit = MyCommon.TwitterApiInfo11.AccessLimit["/statuses/home_timeline"];
+ var endpointName = (e as TwitterApiStatus11.AccessLimitUpdatedEventArgs).EndpointName;
+ if (endpointName == "/statuses/home_timeline")
+ {
+ this._apiGauge.ApiLimit = MyCommon.TwitterApiInfo11.AccessLimit["/statuses/home_timeline"];
+ }
}
else if (sender is TwitterApiStatus && !this._apiGauge.API11Enabled)
{