Skip to content

Commit ab85ee9

Browse files
committed
add note to method of send_atmention_email
1 parent 81c78c8 commit ab85ee9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dojo/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ def process_notifications(request, note, parent_url, parent_title):
861861
users_to_notify=[User.objects.filter(username=username).get()
862862
for username in usernames_to_check if User.objects.filter(is_active=True, username=username).exists()] #is_staff also?
863863
user_posting=request.user
864-
send_atmention_email(user_posting, users_to_notify, parent_url, parent_title)
864+
send_atmention_email(user_posting, users_to_notify, parent_url, parent_title, note)
865865
for u in users_to_notify:
866866
if u.email:
867867
messages.add_message(request,
@@ -874,7 +874,7 @@ def process_notifications(request, note, parent_url, parent_title):
874874
'No email listed for {0}'.format(u.username),
875875
extra_tags='alert-danger')
876876

877-
def send_atmention_email(user, users, parent_url, parent_title):
877+
def send_atmention_email(user, users, parent_url, parent_title, new_note):
878878
recipients=[u.email for u in users]
879879
msg = "\nGreetings, \n\n"
880880
msg += "User {0} mentioned you in a note on {1}".format(str(user),parent_title)

0 commit comments

Comments
 (0)