diff --git a/app/inbox/signals.py b/app/inbox/signals.py index ed5a2ee2f42..ff4c27fcb50 100644 --- a/app/inbox/signals.py +++ b/app/inbox/signals.py @@ -41,7 +41,7 @@ def create_notification(sender, **kwargs): bounty = activity.bounty send_notification_to_user( activity.profile.user, - get_user_model().objects.get(username=bounty.bounty_owner_github_username), + get_user_model().objects.get(username__iexact=bounty.bounty_owner_github_username), bounty.url, 'worker_applied', f'{activity.profile.user} applied to work on {bounty.title}' @@ -51,7 +51,7 @@ def create_notification(sender, **kwargs): bounty = activity.bounty send_notification_to_user( activity.profile.user, - get_user_model().objects.get(username=activity.metadata['worker_handle']), + get_user_model().objects.get(username__iexact=activity.metadata['worker_handle']), bounty.url, 'worker_approved', f'You have been approved to work on {bounty.title}' @@ -61,7 +61,7 @@ def create_notification(sender, **kwargs): bounty = activity.bounty send_notification_to_user( activity.profile.user, - get_user_model().objects.get(username=activity.metadata['worker_handle']), + get_user_model().objects.get(username__iexact=activity.metadata['worker_handle']), bounty.url, 'worker_rejected', f'Your request to work on {bounty.title} has been rejected' @@ -71,7 +71,7 @@ def create_notification(sender, **kwargs): bounty = activity.bounty send_notification_to_user( activity.profile.user, - get_user_model().objects.get(username=bounty.bounty_owner_github_username), + get_user_model().objects.get(username__iexact=bounty.bounty_owner_github_username), bounty.url, 'start_work', f'{activity.profile.user} has started work on {bounty.title}' @@ -81,7 +81,7 @@ def create_notification(sender, **kwargs): bounty = activity.bounty send_notification_to_user( activity.profile.user, - get_user_model().objects.get(username=bounty.bounty_owner_github_username), + get_user_model().objects.get(username__iexact=bounty.bounty_owner_github_username), bounty.url, 'work_submitted', f'{activity.profile.user} has submitted work for {bounty.title}' @@ -91,7 +91,7 @@ def create_notification(sender, **kwargs): bounty = activity.bounty amount_paid = activity.metadata['new_bounty']['value_in_usdt_now'] send_notification_to_user( - get_user_model().objects.get(username=bounty.bounty_owner_github_username), + get_user_model().objects.get(username__iexact=bounty.bounty_owner_github_username), activity.profile.user, bounty.url, 'work_done', @@ -103,7 +103,7 @@ def create_notification(sender, **kwargs): bounty = activity.bounty send_notification_to_user( activity.profile.user, - get_user_model().objects.get(username=bounty.bounty_owner_github_username), + get_user_model().objects.get(username__iexact=bounty.bounty_owner_github_username), bounty.url, 'stop_work', f'{activity.profile.user} has stopped work on {bounty.title}' @@ -114,7 +114,7 @@ def create_notification(sender, **kwargs): amount = activity.metadata['value_in_usdt_now'] send_notification_to_user( activity.profile.user, - get_user_model().objects.get(username=bounty.bounty_owner_github_username), + get_user_model().objects.get(username__iexact=bounty.bounty_owner_github_username), bounty.url, 'new_crowdfund', f'A crowdfunding contribution worth {amount} USD has been attached for {bounty.title}'