開発に使用するリポジトリ
Révision | 9a335504ac6ca33b96fbed4524aad886f4a1f787 (tree) |
---|---|
l'heure | 2012-10-23 06:36:15 |
Auteur | spx <spx268@gmai...> |
Commiter | Kimura Youichi |
PublicSearchでSinceIdを使用するように修正
@@ -2240,7 +2240,7 @@ namespace OpenTween | ||
2240 | 2240 | return ""; |
2241 | 2241 | } |
2242 | 2242 | |
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) | |
2244 | 2244 | { |
2245 | 2245 | TwitterDataModel.SearchResult items; |
2246 | 2246 | try |
@@ -2264,6 +2264,7 @@ namespace OpenTween | ||
2264 | 2264 | if (post == null) continue; |
2265 | 2265 | |
2266 | 2266 | if (minimumId > post.StatusId) minimumId = post.StatusId; |
2267 | + if (!more && post.StatusId > tab.SinceId) tab.SinceId = post.StatusId; | |
2267 | 2268 | //二重取得回避 |
2268 | 2269 | lock (LockObj) |
2269 | 2270 | { |
@@ -2705,7 +2706,7 @@ namespace OpenTween | ||
2705 | 2706 | |
2706 | 2707 | if (!TabInformations.GetInstance().ContainsTab(tab)) return ""; |
2707 | 2708 | |
2708 | - return this.CreatePostsFromSearchJson(content, tab, read, count, ref tab.OldestId); | |
2709 | + return this.CreatePostsFromSearchJson(content, tab, read, count, ref tab.OldestId, more); | |
2709 | 2710 | } |
2710 | 2711 | |
2711 | 2712 | public string GetPhoenixSearch(bool read, |