mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 23:30:45 +08:00
Fix lint.
This commit is contained in:
parent
370cba451d
commit
7897010dfd
|
@ -147,8 +147,10 @@ InviteRedeemer = Struct.new(:invite, :username, :name, :password, :user_custom_f
|
||||||
|
|
||||||
def notify_invitee
|
def notify_invitee
|
||||||
if inviter = invite.invited_by
|
if inviter = invite.invited_by
|
||||||
inviter.notifications.create!(notification_type: Notification.types[:invitee_accepted],
|
inviter.notifications.create!(
|
||||||
data: { display_username: invited_user.username }.to_json)
|
notification_type: Notification.types[:invitee_accepted],
|
||||||
|
data: { display_username: invited_user.username }.to_json
|
||||||
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user