Apply review suggestion from @raccube
Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
This commit is contained in:
parent
5fcf24646e
commit
a1ba1a8082
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue