Skip to content

Commit

Permalink
Merge pull request #250 from opentween/fix-search-timeline-rts
Browse files Browse the repository at this point in the history
検索タイムラインで誤って公式RTが除外される不具合を修正
  • Loading branch information
upsilon authored Nov 24, 2023
2 parents 46dcfa2 + 083dc2d commit 64145ed
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions OpenTween/Twitter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1052,11 +1052,7 @@ public async Task GetSearch(bool read, PublicSearchTabModel tab, bool more)
var response = await request.Send(this.Api.Connection)
.ConfigureAwait(false);

var convertedStatuses = response.Tweets.Select(x => x.ToTwitterStatus());
if (!SettingManager.Instance.Common.IsListsIncludeRts)
convertedStatuses = convertedStatuses.Where(x => x.RetweetedStatus == null);

statuses = convertedStatuses.ToArray();
statuses = response.Tweets.Select(x => x.ToTwitterStatus()).ToArray();
tab.CursorBottom = response.CursorBottom;
}
else
Expand Down

0 comments on commit 64145ed

Please sign in to comment.