mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +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