mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
changed the file upload to use streams
This commit is contained in:
@@ -372,6 +372,15 @@ var config = require('../config.js'),
|
||||
});
|
||||
}
|
||||
|
||||
User.removeFriend = function(uid, friendid, callback) {
|
||||
RDB.srem('user:'+uid+':friends', friendid, function(err, data){
|
||||
if(err === null)
|
||||
callback(data);
|
||||
else
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
|
||||
User.exists = function(username, callback) {
|
||||
User.get_uid_by_username(username, function(exists) {
|
||||
exists = !!exists;
|
||||
|
||||
Reference in New Issue
Block a user