mirror of https://github.com/pixelfed/pixelfed.git
Update AuthLogin listener
This commit is contained in:
parent
c819bfe351
commit
abc738a532
|
@ -25,6 +25,11 @@ class AuthLogin
|
|||
public function handle($event)
|
||||
{
|
||||
$user = $event->user;
|
||||
|
||||
if(!$user) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (empty($user->settings)) {
|
||||
DB::transaction(function() use($user) {
|
||||
UserSetting::firstOrCreate([
|
||||
|
|
Loading…
Reference in New Issue