OSDN Git Service

GetHomeTimelineApiメソッドからAPI v2に関する処理を削除
authorKimura Youichi <kim.upsilon@bucyou.net>
Mon, 6 May 2024 18:45:58 +0000 (03:45 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Mon, 6 May 2024 18:45:58 +0000 (03:45 +0900)
OpenTween/Twitter.cs

index a064b9b..ca7373f 100644 (file)
@@ -648,26 +648,6 @@ namespace OpenTween
                 if (!more)
                     tab.CursorTop = response.CursorTop;
             }
-            else if (SettingManager.Instance.Common.EnableTwitterV2Api)
-            {
-                var maxId = more ? tab.CursorBottom?.As<TwitterStatusId>() : null;
-                var request = new GetTimelineRequest(this.UserId)
-                {
-                    MaxResults = count,
-                    UntilId = maxId,
-                };
-
-                var response = await request.Send(this.Api.Connection)
-                    .ConfigureAwait(false);
-
-                if (response.Data == null || response.Data.Length == 0)
-                    return;
-
-                var tweetIds = response.Data.Select(x => x.Id).ToList();
-
-                statuses = await this.Api.StatusesLookup(tweetIds)
-                    .ConfigureAwait(false);
-            }
             else
             {
                 var maxId = more ? tab.CursorBottom?.As<TwitterStatusId>() : null;