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?
|
asker = if answer.question.author_is_anonymous?
|
||||||
APP_CONFIG['anonymous_name']
|
APP_CONFIG['anonymous_name']
|
||||||
else
|
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
|
end
|
||||||
|
|
||||||
"#{asker} asked: #{answer.question.content}"
|
"#{asker} asked: #{answer.question.content}"
|
||||||
|
|
Loading…
Reference in New Issue