diff --git a/app/models/profile.rb b/app/models/profile.rb index 1ef12408b..2ed75baef 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -151,7 +151,9 @@ def name_or_email end def main_topic_or_first_topic - main_topic.present? ? main_topic : taggings.map { |tagging| tagging&.tag&.name }&.first + return nil unless main_topic + + main_topic end # Try building a slug based on the following fields in