• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

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


Commit MetaInfo

Révision9a335504ac6ca33b96fbed4524aad886f4a1f787 (tree)
l'heure2012-10-23 06:36:15
Auteurspx <spx268@gmai...>
CommiterKimura Youichi

Message de Log

PublicSearchでSinceIdを使用するように修正

Change Summary

Modification

--- a/OpenTween/Twitter.cs
+++ b/OpenTween/Twitter.cs
@@ -2240,7 +2240,7 @@ namespace OpenTween
22402240 return "";
22412241 }
22422242
2243- private string CreatePostsFromSearchJson(string content, TabClass tab, bool read, int count, ref long minimumId)
2243+ private string CreatePostsFromSearchJson(string content, TabClass tab, bool read, int count, ref long minimumId, bool more)
22442244 {
22452245 TwitterDataModel.SearchResult items;
22462246 try
@@ -2264,6 +2264,7 @@ namespace OpenTween
22642264 if (post == null) continue;
22652265
22662266 if (minimumId > post.StatusId) minimumId = post.StatusId;
2267+ if (!more && post.StatusId > tab.SinceId) tab.SinceId = post.StatusId;
22672268 //二重取得回避
22682269 lock (LockObj)
22692270 {
@@ -2705,7 +2706,7 @@ namespace OpenTween
27052706
27062707 if (!TabInformations.GetInstance().ContainsTab(tab)) return "";
27072708
2708- return this.CreatePostsFromSearchJson(content, tab, read, count, ref tab.OldestId);
2709+ return this.CreatePostsFromSearchJson(content, tab, read, count, ref tab.OldestId, more);
27092710 }
27102711
27112712 public string GetPhoenixSearch(bool read,