1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2025-03-11 22:53:07 +00:00

Update UserObserver

This commit is contained in:
Daniel Supernault 2023-01-21 05:34:33 -07:00
parent 6b1f8651fb
commit 796e374040
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -26,6 +26,10 @@ class UserObserver
return;
}
if(Profile::whereUsername($user->username)->exists()) {
return;
}
if (empty($user->profile)) {
$profile = DB::transaction(function() use($user) {
$profile = new Profile();