From a1ba1a80822aeec6d354d2bad160e266701b84c3 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 26 Dec 2021 23:41:23 +0100 Subject: [PATCH] Apply review suggestion from @raccube Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com> --- app/helpers/social_helper/tumblr_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/social_helper/tumblr_methods.rb b/app/helpers/social_helper/tumblr_methods.rb index 0a16f258..f6e4710c 100644 --- a/app/helpers/social_helper/tumblr_methods.rb +++ b/app/helpers/social_helper/tumblr_methods.rb @@ -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}"