providers/nodebb/notification.js
function evalBlacklist(notification) {
        return new Promise((resolve, reject) => {
            const ignoreCategories = forum.config.core.ignoreCategories || [];

            //if there's no blacklist, we can ignore the hit for getting the category
            if (ignoreCategories.length) {
                if (ignoreCategories.some((elem) => elem.toString() === notification.categoryId.toString())) {
                    forum.emit('log', `Notification from category ${notification.categoryId} ignored`);
                    return reject('Ignoring notification');
                }
            }
            return resolve(notification);
        });
    }
function evalBlacklist(notification) {
        return new Promise((resolve, reject) => {
            const ignoreCategories = forum.config.core.ignoreCategories || [];

            //if there's no blacklist, we can ignore the hit for getting the category
            if (ignoreCategories.length) {
                if (ignoreCategories.some((elem) => elem.toString() === notification.categoryId.toString())) {
                    forum.emit('log', `Notification from category ${notification.categoryId} ignored`);
                    return reject('Ignoring notification');
                }
            }
            return resolve(notification);
        });
    }
function evalBlacklist ( notification ) { return new Promise ( ( resolve , reject ) => { const ignoreCategories = forum . config . core . ignoreCategories || [ ] ; //if there's no blacklist, we can ignore the hit for getting the category if ( ignoreCategories . length ) { if ( ignoreCategories . some ( ( elem ) => elem . toString ( ) === notification . categoryId . toString ( ) ) ) { forum . emit ( 'log' , ` ${ notification . categoryId } ` ) ; return reject ( 'Ignoring notification' ) ; } } return resolve ( notification ) ; } ) ; }
Evaluate the blacklist.

Determine if we want to process this notification or not based on config settings

@private

@param {*} notification Notification we are parsing
@returns {Promise} Rejects with "Ignoring notification" if we do not process this. Resolves with the notification
otherwise.
Evaluate the blacklist .