Apply review suggestion from @raccube

Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
This commit is contained in:
Andreas Nedbal 2021-12-26 23:41:23 +01:00 committed by GitHub
parent 5fcf24646e
commit a1ba1a8082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ module SocialHelper::TumblrMethods
asker = if answer.question.author_is_anonymous?
APP_CONFIG['anonymous_name']
else
answer.question.user.profile.display_name.blank? ? answer.question.user.screen_name : answer.question.user.profile.display_name
answer.question.user.profile.safe_name
end
"#{asker} asked: #{answer.question.content}"