1
0
mirror of https://github.com/TwidereProject/Twidere-Android synced 2025-02-03 18:17:37 +01:00
This commit is contained in:
Mariotaku Lee 2017-11-15 13:46:33 +08:00
parent d11197c879
commit cc6eafd8a3
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535

View File

@ -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) {