mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
fixed the data passing to accountedit.tpl
This commit is contained in:
@@ -350,11 +350,10 @@ var express = require('express'),
|
||||
data.age = new Date().getFullYear() - new Date(data.birthday).getFullYear();
|
||||
data.uid = uid;
|
||||
|
||||
callback({
|
||||
yourid: (req.user)?req.user.uid : 0,
|
||||
theirid: uid,
|
||||
user: data
|
||||
});
|
||||
data.yourid = (req.user)?req.user.uid : 0;
|
||||
data.theirid = uid;
|
||||
|
||||
callback(data);
|
||||
}
|
||||
else
|
||||
callback({user:{}});
|
||||
|
||||
Reference in New Issue
Block a user