diff --git a/endpoints/notificationmethod.py b/endpoints/notificationmethod.py index 589ebd06d..78104ea2e 100644 --- a/endpoints/notificationmethod.py +++ b/endpoints/notificationmethod.py @@ -211,7 +211,7 @@ class FlowdockMethod(NotificationMethod): if not token: return - owner = model.get_user(notification.repository.namespace_user.username) + owner = model.get_user_or_org(notification.repository.namespace_user.username) if not owner: # Something went wrong. return @@ -267,7 +267,7 @@ class HipchatMethod(NotificationMethod): if not token or not room_id: return - owner = model.get_user(notification.repository.namespace_user.username) + owner = model.get_user_or_org(notification.repository.namespace_user.username) if not owner: # Something went wrong. return @@ -334,7 +334,7 @@ class SlackMethod(NotificationMethod): if not token or not subdomain: return - owner = model.get_user(notification.repository.namespace_user.username) + owner = model.get_user_or_org(notification.repository.namespace_user.username) if not owner: # Something went wrong. return