adjust tweet length to new twitter limit
This commit is contained in:
parent
6120256bad
commit
7a16113295
|
@ -36,7 +36,7 @@ class Services::Twitter < Service
|
||||||
host: APP_CONFIG['hostname'],
|
host: APP_CONFIG['hostname'],
|
||||||
protocol: (APP_CONFIG['https'] ? :https : :http)
|
protocol: (APP_CONFIG['https'] ? :https : :http)
|
||||||
)
|
)
|
||||||
"#{question_content[0..54]}#{'…' if question_content.length > 55}" \
|
"#{question_content[0..122]}#{'…' if question_content.length > 123}" \
|
||||||
" — #{answer_content[0..55]}#{'…' if answer_content.length > 56} #{answer_url}"
|
" — #{answer_content[0..123]}#{'…' if answer_content.length > 124} #{answer_url}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue