Fix rubocop nits

This commit is contained in:
Andreas Nedbal 2023-10-19 23:53:21 +02:00
parent 6e8f8bcc67
commit f95e11cffc
1 changed files with 2 additions and 2 deletions

View File

@ -4,13 +4,13 @@ require "cgi"
module SocialHelper::TwitterMethods
include MarkdownHelper
def prepare_tweet(answer, post_tag = nil, omit_url = false)
question_content = twitter_markdown answer.question.content.gsub(/@(\w+)/, '\1')
original_question_length = question_content.length
answer_content = twitter_markdown answer.content
original_answer_length = answer_content.length
unless omit_url
answer_url = answer_url(
id: answer.id,