adjust tweet length to new twitter limit

This commit is contained in:
Andreas N 2018-04-11 21:26:58 +02:00
parent 6120256bad
commit 7a16113295
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ class Services::Twitter < Service
host: APP_CONFIG['hostname'],
protocol: (APP_CONFIG['https'] ? :https : :http)
)
"#{question_content[0..54]}#{'…' if question_content.length > 55}" \
"#{answer_content[0..55]}#{'…' if answer_content.length > 56} #{answer_url}"
"#{question_content[0..122]}#{'…' if question_content.length > 123}" \
"#{answer_content[0..123]}#{'…' if answer_content.length > 124} #{answer_url}"
end
end