We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e84a5c7 commit 3e402b7Copy full SHA for 3e402b7
app/Traits/HasProfilePhoto.php
@@ -18,7 +18,7 @@ public function getProfilePhotoUrlAttribute(): ?string
18
/** @var SocialAccount $social_avatar */
19
$social_avatar = $this->providers->firstWhere('provider', $this->avatar_type);
20
21
- return $social_avatar->avatar;
+ return $social_avatar ? $social_avatar->avatar : $this->defaultProfilePhotoUrl();
22
}
23
24
return $this->defaultProfilePhotoUrl();
0 commit comments