Created
September 13, 2012 10:14
-
-
Save spx268/3713376 to your computer and use it in GitHub Desktop.
[OpenTween] JSON版検索<https://github.com/opentween/OpenTween/commit/9fb185f883>でSinceIdを使用するように修正
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
diff --git a/OpenTween/Twitter.cs b/OpenTween/Twitter.cs | |
index 75210fb..0b167e6 100644 | |
--- a/OpenTween/Twitter.cs | |
+++ b/OpenTween/Twitter.cs | |
@@ -2240,7 +2240,7 @@ namespace OpenTween | |
return ""; | |
} | |
- private string CreatePostsFromSearchJson(string content, TabClass tab, bool read, int count, ref long minimumId) | |
+ private string CreatePostsFromSearchJson(string content, TabClass tab, bool read, int count, ref long minimumId, bool more) | |
{ | |
TwitterDataModel.SearchResult items; | |
try | |
@@ -2264,6 +2264,7 @@ namespace OpenTween | |
if (post == null) continue; | |
if (minimumId > post.StatusId) minimumId = post.StatusId; | |
+ if (!more && post.StatusId > tab.SinceId) tab.SinceId = post.StatusId; | |
//二重取得回避 | |
lock (LockObj) | |
{ | |
@@ -2705,7 +2706,7 @@ namespace OpenTween | |
if (!TabInformations.GetInstance().ContainsTab(tab)) return ""; | |
- return this.CreatePostsFromSearchJson(content, tab, read, count, ref tab.OldestId); | |
+ return this.CreatePostsFromSearchJson(content, tab, read, count, ref tab.OldestId, more); | |
} | |
public string GetPhoenixSearch(bool read, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment