A platform for community discussion. Free, open, simple.
Make rubocop happy.
Guo Xiang Tan74ce2220a7c2
diff --git a/app/mailers/user_notifications.rb b/app/mailers/user_notifications.rbindex 9b268908370..4a021ce808e 100644--- a/app/mailers/user_notifications.rb+++ b/app/mailers/user_notifications.rb@@ -435,7 +435,7 @@ class UserNotifications < ActionMailer::Baseif post.topic.private_message?subject_pm =- if opts[:show_group_in_subject] and group = post.topic.allowed_groups&.first+ if opts[:show_group_in_subject] && group = post.topic.allowed_groups&.firstif group.full_name"[#{group.full_name}] "else