mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 07:40:43 +01:00
don't show rss_token in /api/user/name
This commit is contained in:
@@ -122,6 +122,10 @@ module.exports = function (User) {
|
||||
user.password = undefined;
|
||||
}
|
||||
|
||||
if (user.rss_token) {
|
||||
user.rss_token = undefined;
|
||||
}
|
||||
|
||||
if (!parseInt(user.uid, 10)) {
|
||||
user.uid = 0;
|
||||
user.username = '[[global:guest]]';
|
||||
|
||||
Reference in New Issue
Block a user