don't show rss_token in /api/user/name

This commit is contained in:
psychobunny
2017-07-04 23:46:49 -04:00
parent b744f8ce5a
commit dd1cfd62d4

View File

@@ -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]]';