From 31242335a64336799f03785b5bfff8acf5768964 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 26 Feb 2018 13:08:10 +0800 Subject: [PATCH] Revert "Fix the build." This reverts commit 07f928e05e1e540de932c9a11912a0566557625f. --- app/models/topic.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/topic.rb b/app/models/topic.rb index a805180761a..d48825e0cd1 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -816,11 +816,11 @@ SQL Notification.types[:invited_to_topic], invited_by.username ) - - true else invite_by_email(invited_by, username_or_email, group_ids, custom_message) end + + true elsif user && topic_allowed_users.create!(user_id: user.id) create_invite_notification!( Notification.types[:invited_to_topic],