mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(Profile::whereUsername($user->username)->exists()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (empty($user->profile)) {
|
if (empty($user->profile)) {
|
||||||
$profile = DB::transaction(function() use($user) {
|
$profile = DB::transaction(function() use($user) {
|
||||||
$profile = new Profile();
|
$profile = new Profile();
|
||||||
|
|
Loading…
Reference in a new issue