OSDN Git Service

Revert "ツイートの入力可能文字数に pic.twitter.com のURLをカウントしない"
authorKimura Youichi <kim.upsilon@bucyou.net>
Mon, 26 Sep 2016 11:54:27 +0000 (20:54 +0900)
committerKimura Youichi <kim.upsilon@bucyou.net>
Mon, 26 Sep 2016 15:39:18 +0000 (00:39 +0900)
This reverts commit c93eecae6505c462148e566958992870278b536d.

OpenTween/Tween.cs

index 0277bd0..a4f3f3b 100644 (file)
@@ -4816,6 +4816,11 @@ namespace OpenTween
             //文字数カウント
             var remainCount = this.tw.GetTextLengthRemain(statusText);
 
+            if (this.ImageSelector.Visible && !string.IsNullOrEmpty(this.ImageSelector.ServiceName))
+            {
+                remainCount -= this.tw.Configuration.CharactersReservedPerMedia;
+            }
+
             return remainCount;
         }