only triggering forum updated messaging if hostname matches, fixes #6333

This commit is contained in:
Julian Lam
2018-02-20 15:32:44 -05:00
parent 9a1f722a05
commit a4a961639d
4 changed files with 9 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
var fs = require('fs');
var path = require('path');
var os = require('os');
var nconf = require('nconf');
var express = require('express');
var app = express();
@@ -72,6 +73,7 @@ module.exports.listen = function (callback) {
require('./socket.io').server.emit('event:nodebb.ready', {
'cache-buster': meta.config['cache-buster'],
hostname: os.hostname(),
});
plugins.fireHook('action:nodebb.ready');