FEATURE: Send notification when member was accepted to group. (#7614)

This commit is contained in:
Bianca Nenciu
2019-08-06 13:29:46 +03:00
committed by GitHub
parent b60b2a342f
commit 37e7998a82
9 changed files with 104 additions and 5 deletions

View File

@ -351,7 +351,7 @@ class GroupsController < ApplicationController
raise Discourse::InvalidParameters.new(:user_id) if user.blank?
if params[:accept]
group.add(user)
group.add(user, notify: true)
GroupActionLogger.new(current_user, group).log_add_user_to_group(user)
end