mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
FEATURE: Send notification when member was accepted to group. (#7614)
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user