diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2017-11-08 12:13:50 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2017-11-08 12:13:50 +0200 |
commit | a4c3f5aaaec6a190381bfe31ceec97ed31e010f1 (patch) | |
tree | e37d3ae5ab53adaaad87cf72b2b57a611ead8545 | |
parent | f986d1bcbed863ab247080f1b36a64d94e36e8bd (diff) |
MAINT-7940 Don't decrease character limit when sending snapshot to Twitter. Increase limit to 280
-rw-r--r-- | indra/newview/llfloatertwitter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/llfloatertwitter.cpp b/indra/newview/llfloatertwitter.cpp index 4bab89ace2..803c80ac1a 100644 --- a/indra/newview/llfloatertwitter.cpp +++ b/indra/newview/llfloatertwitter.cpp @@ -404,13 +404,12 @@ void LLTwitterPhotoPanel::clearAndClose() void LLTwitterPhotoPanel::updateStatusTextLength(BOOL restore_old_status_text) { bool add_location = mLocationCheckbox->getValue().asBoolean(); - bool add_photo = mPhotoCheckbox->getValue().asBoolean(); // Restrict the status text length to Twitter's character limit LLTextEditor* status_text_box = dynamic_cast<LLTextEditor*>(mStatusTextBox); if (status_text_box) { - int max_status_length = 140 - (add_location ? 40 : 0) - (add_photo ? 40 : 0); + int max_status_length = 280 - (add_location ? 40 : 0); status_text_box->setMaxTextLength(max_status_length); if (restore_old_status_text) { |