OSDN Git Service

TwitterTextConfiguration.TransfotmedURLLengthの値を help/configuration.json に合わせて更新する
authorKimura Youichi <kim.upsilon@bucyou.net>
Sat, 11 Nov 2017 19:03:56 +0000 (04:03 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 11 Nov 2017 19:03:56 +0000 (04:03 +0900)
OpenTween/Twitter.cs

index 340b270..b3cabe8 100644 (file)
@@ -1447,6 +1447,9 @@ namespace OpenTween
         {
             this.Configuration = await this.Api.Configuration()
                 .ConfigureAwait(false);
+
+            // TextConfiguration 相当の JSON を得る API が存在しないため、TransformedURLLength のみ help/configuration.json に合わせて更新する
+            this.TextConfiguration.TransformedURLLength = this.Configuration.ShortUrlLengthHttps;
         }
 
         public async Task GetListsApi()