OSDN Git Service

IMediaUploadService.GetReservedTextLengthが返す文字数に半角スペース1文字分を含める
authorKimura Youichi <kim.upsilon@bucyou.net>
Mon, 26 Sep 2016 15:37:01 +0000 (00:37 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Mon, 26 Sep 2016 15:39:40 +0000 (00:39 +0900)
OpenTween/Connection/Imgur.cs
OpenTween/Connection/Mobypicture.cs
OpenTween/Connection/TwipplePhoto.cs
OpenTween/Connection/imgly.cs
OpenTween/Connection/yfrog.cs

index c75ee3f..20f1361 100644 (file)
@@ -140,9 +140,7 @@ namespace OpenTween.Connection
         }
 
         public int GetReservedTextLength(int mediaCount)
-        {
-            return this.twitterConfig.ShortUrlLength;
-        }
+            => this.twitterConfig.ShortUrlLength + 1;
 
         public void UpdateTwitterConfiguration(TwitterConfiguration config)
         {
index 4343cf7..026d8f0 100644 (file)
@@ -157,9 +157,7 @@ namespace OpenTween.Connection
         }
 
         public int GetReservedTextLength(int mediaCount)
-        {
-            return this.twitterConfig.ShortUrlLength;
-        }
+            => this.twitterConfig.ShortUrlLength + 1;
 
         public void UpdateTwitterConfiguration(TwitterConfiguration config)
         {
index 6e83645..34ce7a8 100644 (file)
@@ -136,9 +136,7 @@ namespace OpenTween.Connection
         }
 
         public int GetReservedTextLength(int mediaCount)
-        {
-            return this.twitterConfig.ShortUrlLength;
-        }
+            => this.twitterConfig.ShortUrlLength + 1;
 
         public void UpdateTwitterConfiguration(TwitterConfiguration config)
         {
index 997f6f1..56afe20 100644 (file)
@@ -127,9 +127,7 @@ namespace OpenTween.Connection
         }
 
         public int GetReservedTextLength(int mediaCount)
-        {
-            return this.twitterConfig.ShortUrlLength;
-        }
+            => this.twitterConfig.ShortUrlLength + 1;
 
         public void UpdateTwitterConfiguration(TwitterConfiguration config)
         {
index ee1838d..596c45f 100644 (file)
@@ -119,9 +119,7 @@ namespace OpenTween.Connection
         }
 
         public int GetReservedTextLength(int mediaCount)
-        {
-            return this.twitterConfig.ShortUrlLength;
-        }
+            => this.twitterConfig.ShortUrlLength + 1;
 
         public void UpdateTwitterConfiguration(TwitterConfiguration config)
         {