mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 19:36:41 +02:00
test: fix actor tests
This commit is contained in:
@@ -235,7 +235,7 @@ module.exports = function (User) {
|
||||
user.username = validator.escape(user.username ? user.username.toString() : '');
|
||||
}
|
||||
|
||||
if (user.hasOwnProperty('url')) {
|
||||
if (user.hasOwnProperty('url') && !requestedFields.includes('url')) {
|
||||
// works around renderOverride supplying `url` to templates
|
||||
user.remoteUrl = user.url;
|
||||
delete user.url;
|
||||
|
||||
Reference in New Issue
Block a user