mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Allow sending a message with invite (#12892)
* FEATURE: Allow sending a message with invite It used to be a staff-only feature and this commit makes it available to everyone who can invite. * FIX: Inviting to topic uses another email template This used to be the case, but the extra parameter was lost when we switched to the new modal.
This commit is contained in:
@@ -183,7 +183,7 @@ class InvitesController < ApplicationController
|
||||
|
||||
if invite.emailed_status == Invite.emailed_status_types[:pending]
|
||||
invite.update_column(:emailed_status, Invite.emailed_status_types[:sending])
|
||||
Jobs.enqueue(:invite_email, invite_id: invite.id)
|
||||
Jobs.enqueue(:invite_email, invite_id: invite.id, invite_to_topic: params[:invite_to_topic])
|
||||
end
|
||||
|
||||
render_serialized(invite, InviteSerializer, scope: guardian, root: nil, show_emails: params.has_key?(:email))
|
||||
|
||||
Reference in New Issue
Block a user