mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update UserObserver
This commit is contained in:
parent
6b1f8651fb
commit
796e374040
1 changed files with 4 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue