

@must_be_logged_in
@must_be_valid_project
def get_node_subscriptions(auth, **kwargs):
    node = (kwargs.get('node') or kwargs['project'])
    return utils.format_data(auth.user, [node._id])

dataset/ETHPy150Open CenterForOpenScience/osf.io/website/notifications/views.py get_node_subscriptions/original