mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
add canReply to messages
This commit is contained in:
@@ -222,6 +222,13 @@ var meta = require('./meta');
|
||||
db.sortedSetScore('email:uid', email.toLowerCase(), callback);
|
||||
};
|
||||
|
||||
User.getUidsByEmails = function (emails, callback) {
|
||||
emails = emails.map(function(email) {
|
||||
return email && email.toLowerCase();
|
||||
});
|
||||
db.sortedSetScores('email:uid', emails, callback);
|
||||
};
|
||||
|
||||
User.getUsernameByEmail = function (email, callback) {
|
||||
db.sortedSetScore('email:uid', email.toLowerCase(), function (err, uid) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user