fix(User): don't generate the banner URL when not cached (#6783)

This commit is contained in:
Rodry
2021-10-08 11:36:14 +01:00
committed by GitHub
parent e24209a8b1
commit 0d599a1a76

View File

@@ -324,7 +324,7 @@ class User extends Base {
);
json.avatarURL = this.avatarURL();
json.displayAvatarURL = this.displayAvatarURL();
json.bannerURL = this.bannerURL();
json.bannerURL = this.banner ? this.bannerURL() : this.banner;
return json;
}