Skip to content

Instantly share code, notes, and snippets.

@spx268
Created September 13, 2012 10:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spx268/3713376 to your computer and use it in GitHub Desktop.
Save spx268/3713376 to your computer and use it in GitHub Desktop.
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