From e48f18bf7e99bd9df00f2080cf84aec40fc8fd1e Mon Sep 17 00:00:00 2001 From: Georg G Date: Sat, 18 Apr 2015 23:35:08 +0200 Subject: [PATCH] remove (markdown) parsing for questions in tweets --- 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 243536c7..c632a8cf 100644 --- a/app/models/services/twitter.rb +++ b/app/models/services/twitter.rb @@ -28,7 +28,7 @@ class Services::Twitter < Service def prepare_tweet(answer) # TODO: improve this. - question_content = twitter_markdown answer.question.content + question_content = answer.question.content answer_content = twitter_markdown answer.content answer_url = show_user_answer_url( id: answer.id, @@ -39,4 +39,4 @@ class Services::Twitter < Service "#{question_content[0..54]}#{'…' if question_content.length > 55}" \ " — #{answer_content[0..55]}#{'…' if answer_content.length > 56} #{answer_url}" end -end \ No newline at end of file +end