From cc6eafd8a311aef27eed4f068657a6151a989d66 Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Wed, 15 Nov 2017 13:46:33 +0800 Subject: [PATCH] fixed #1018 --- .../kotlin/org/mariotaku/twidere/activity/ComposeActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/activity/ComposeActivity.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/activity/ComposeActivity.kt index c9ed54fb2..e21012068 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/activity/ComposeActivity.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/activity/ComposeActivity.kt @@ -1560,7 +1560,7 @@ class ComposeActivity : BaseActivity(), OnMenuItemClickListener, OnClickListener val (replyStartIndex, replyText, _, excludedMentions, replyToOriginalUser) = replyTextAndMentions if (replyText.isEmpty() && media.isEmpty()) throw NoContentException() - val totalLength = StatusTextValidator.calculateLength(accounts, summary, text) + val totalLength = StatusTextValidator.calculateLength(accounts, summary, replyText) if (checkLength && !statusShortenerUsed && maxLength > 0 && totalLength > maxLength) { val summaryLength = StatusTextValidator.calculateSummaryLength(accounts, summary) if (summary != null && summaryLength > maxLength) {