     else
         article = "a"
 
-# Retreive all the sharing informations to build a human-readable notification
+
+# Retreive all the sharing informations to build a human-readable notification.
 getSharingInfos = (id, shareID, callback) ->
     path = "request/sharing/byShareID"
     options =

                    slug = "sharing_update_notification"
                    createPersistentNotif apps[docType], slug, message, callback

    # A shared document has been deleted by the sharer
    else if tokens[2] is "delete"
        # The doc id and the shareID are concatenated
        [id, shareID] = extractIds id

        if id? and shareID?
            getSharingInfos id, shareID, (err, sharing, docType) ->
                if err?
                    log.error err
                # The sharer shouldn't be notified as he created the request
                else if not sharing.targets? and docType?
                    sharerName = sharing.sharerName
                    article = articleBeforeDocType docType

    prefix: 'sharing-manager'

# We need to access the DS directly because of the genericity of the
# received docTypes.
clientDS = new Client "http://localhost:9101/"

if process.env.NODE_ENV in ['test', 'production']
