From 7a1611329533c3ddfb74e063fb2352412271c881 Mon Sep 17 00:00:00 2001 From: Andreas N Date: Wed, 11 Apr 2018 21:26:58 +0200 Subject: [PATCH] adjust tweet length to new twitter limit --- app/models/services/twitter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/services/twitter.rb b/app/models/services/twitter.rb index b27720a9..0726fe97 100644 --- a/app/models/services/twitter.rb +++ b/app/models/services/twitter.rb @@ -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