mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-21 21:37:47 +01:00
Revert "remove (markdown) parsing for questions in tweets"
This reverts commit e48f18bf7e
.
This commit is contained in:
parent
e48f18bf7e
commit
8453c44827
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ class Services::Twitter < Service
|
|||
|
||||
def prepare_tweet(answer)
|
||||
# TODO: improve this.
|
||||
question_content = answer.question.content
|
||||
question_content = twitter_markdown 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
|
||||
end
|
Loading…
Reference in a new issue