This commit is contained in:
Dennis 2021-10-13 22:05:37 +02:00 committed by GitHub
parent 4f838d89bb
commit 73fe6a502a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,7 +213,7 @@ class User extends Authenticatable implements MustVerifyEmail
*/
public function getAvatar()
{
if ($this->discordUser()->exists()){
if ($this->discordUser()->exists()) {
if(@getimagesize($this->discordUser->getAvatar())) {
$avatar = $this->discordUser->getAvatar();
} else {