• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

開発に使用するリポジトリ


Commit MetaInfo

修訂83c88bf019c9664e8c1661b64695eac4b8d44f51 (tree)
時間2013-07-12 22:41:33
作者Kimura Youichi <kim.upsilon@bucy...>
CommiterKimura Youichi

Log Message

起動時の片思いユーザー取得を無効に設定すると no_retweet_ids の取得が行われない問題の修正 (thx @ui_nyan!)

Change Summary

差異

--- a/OpenTween/MyCommon.cs
+++ b/OpenTween/MyCommon.cs
@@ -153,6 +153,7 @@ namespace OpenTween
153153 UserTimeline, //UserTimeline
154154 BlockIds, //Blocking/ids
155155 Configuration, //Twitter Configuration読み込み
156+ NoRetweetIds, //RT非表示ユーザー取得
156157 //////
157158 ErrorState, //エラー表示のみで後処理終了(認証エラー時など)
158159 }
--- a/OpenTween/Resources/ChangeLog.txt
+++ b/OpenTween/Resources/ChangeLog.txt
@@ -1,6 +1,7 @@
11 更新履歴
22
33 ==== Ver 1.1.3-beta1(2013/xx/xx)
4+ * FIX: 「片思いユーザーリストを取得する」を無効にするとRT非表示設定が反映されない問題の修正 (thx @ui_nyan!)
45
56 ==== Ver 1.1.2(2013/07/06)
67 * NEW: 画像アップロード対応サービスについっぷるフォトを追加
--- a/OpenTween/Tween.cs
+++ b/OpenTween/Tween.cs
@@ -1452,6 +1452,7 @@ namespace OpenTween
14521452 {
14531453 Interlocked.Exchange(ref refreshFollowers, 0);
14541454 doGetFollowersMenu();
1455+ GetTimeline(MyCommon.WORKERTYPE.NoRetweetIds, 0, 0, "");
14551456 GetTimeline(MyCommon.WORKERTYPE.Configuration, 0, 0, "");
14561457 if (InvokeRequired && !IsDisposed) this.Invoke(new MethodInvoker(this.TrimPostChain));
14571458 }
@@ -2608,10 +2609,9 @@ namespace OpenTween
26082609 case MyCommon.WORKERTYPE.Follower:
26092610 bw.ReportProgress(50, Properties.Resources.UpdateFollowersMenuItem1_ClickText1);
26102611 ret = tw.GetFollowersApi();
2611- if (string.IsNullOrEmpty(ret))
2612- {
2613- ret = tw.GetNoRetweetIdsApi();
2614- }
2612+ break;
2613+ case MyCommon.WORKERTYPE.NoRetweetIds:
2614+ ret = tw.GetNoRetweetIdsApi();
26152615 break;
26162616 case MyCommon.WORKERTYPE.Configuration:
26172617 ret = tw.ConfigurationApi();
@@ -2847,6 +2847,9 @@ namespace OpenTween
28472847 case MyCommon.WORKERTYPE.Follower:
28482848 smsg = Properties.Resources.UpdateFollowersMenuItem1_ClickText3;
28492849 break;
2850+ case MyCommon.WORKERTYPE.NoRetweetIds:
2851+ smsg = "NoRetweetIds refreshed";
2852+ break;
28502853 case MyCommon.WORKERTYPE.Configuration:
28512854 //進捗メッセージ残す
28522855 break;
@@ -2940,6 +2943,7 @@ namespace OpenTween
29402943 rslt.type == MyCommon.WORKERTYPE.DirectMessegeSnt ||
29412944 rslt.type == MyCommon.WORKERTYPE.Favorites ||
29422945 rslt.type == MyCommon.WORKERTYPE.Follower ||
2946+ rslt.type == MyCommon.WORKERTYPE.NoRetweetIds ||
29432947 rslt.type == MyCommon.WORKERTYPE.FavAdd ||
29442948 rslt.type == MyCommon.WORKERTYPE.FavRemove ||
29452949 rslt.type == MyCommon.WORKERTYPE.Related ||
@@ -3104,6 +3108,8 @@ namespace OpenTween
31043108 this.PurgeListViewItemCache();
31053109 if (_curList != null) _curList.Refresh();
31063110 break;
3111+ case MyCommon.WORKERTYPE.NoRetweetIds:
3112+ break;
31073113 case MyCommon.WORKERTYPE.Configuration:
31083114 //_waitFollower = false
31093115 if (SettingDialog.TwitterConfiguration.PhotoSizeLimit != 0)
@@ -10770,6 +10776,7 @@ namespace OpenTween
1077010776 if (this.IsNetworkAvailable())
1077110777 {
1077210778 GetTimeline(MyCommon.WORKERTYPE.BlockIds, 0, 0, "");
10779+ GetTimeline(MyCommon.WORKERTYPE.NoRetweetIds, 0, 0, "");
1077310780 if (SettingDialog.StartupFollowers)
1077410781 {
1077510782 GetTimeline(MyCommon.WORKERTYPE.Follower, 0, 0, "");
@@ -10831,6 +10838,10 @@ namespace OpenTween
1083110838 GetTimeline(MyCommon.WORKERTYPE.Follower, 0, 0, "");
1083210839
1083310840 // 取得失敗の場合は再試行する
10841+ if (!tw.GetNoRetweetSuccess)
10842+ GetTimeline(MyCommon.WORKERTYPE.NoRetweetIds, 0, 0, "");
10843+
10844+ // 取得失敗の場合は再試行する
1083410845 if (SettingDialog.TwitterConfiguration.PhotoSizeLimit == 0)
1083510846 GetTimeline(MyCommon.WORKERTYPE.Configuration, 0, 0, "");
1083610847
--- a/OpenTween/Twitter.cs
+++ b/OpenTween/Twitter.cs
@@ -3329,7 +3329,6 @@ namespace OpenTween
33293329 {
33303330 noRTId.Clear();
33313331 noRTId.AddRange(tmpIds);
3332- _GetNoRetweetResult = false;
33333332 return ret;
33343333 }
33353334 } while (cursor > 0);