mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
moved the imgur clientID to the server config file
This commit is contained in:
@@ -83,6 +83,7 @@ var async = require('async'),
|
|||||||
|
|
||||||
server_conf.base_url = protocol + '//' + host;
|
server_conf.base_url = protocol + '//' + host;
|
||||||
server_conf.relative_path = relative_path;
|
server_conf.relative_path = relative_path;
|
||||||
|
server_conf.imgurClientID = '';
|
||||||
|
|
||||||
install.save(server_conf, client_conf, callback);
|
install.save(server_conf, client_conf, callback);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -322,8 +322,7 @@ var RDB = require('./redis.js'),
|
|||||||
user.onNewPostMade(uid, tid, pid, timestamp);
|
user.onNewPostMade(uid, tid, pid, timestamp);
|
||||||
|
|
||||||
var imgur = require('./imgur');
|
var imgur = require('./imgur');
|
||||||
// move clientID to config
|
imgur.setClientID(global.nconf.get('imgurClientID'));
|
||||||
imgur.setClientID('09f3955fee9a0a6');
|
|
||||||
|
|
||||||
var uploadedImages = [];
|
var uploadedImages = [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user