mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 11:01:20 +01:00
test: dont return cover:url if its not requested
This commit is contained in:
@@ -267,10 +267,11 @@ module.exports = function (User) {
|
|||||||
user.picture = user.uploadedpicture;
|
user.picture = user.uploadedpicture;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (user.hasOwnProperty('cover:url')) {
|
||||||
user['cover:url'] = user['cover:url'] ?
|
user['cover:url'] = user['cover:url'] ?
|
||||||
prependRelativePath(user['cover:url']) :
|
prependRelativePath(user['cover:url']) :
|
||||||
coverPhoto.getDefaultProfileCover(user.uid);
|
coverPhoto.getDefaultProfileCover(user.uid);
|
||||||
|
}
|
||||||
|
|
||||||
if (meta.config.defaultAvatar && !user.picture) {
|
if (meta.config.defaultAvatar && !user.picture) {
|
||||||
user.picture = User.getDefaultAvatar();
|
user.picture = User.getDefaultAvatar();
|
||||||
|
|||||||
Reference in New Issue
Block a user