mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update AuthLogin listener
This commit is contained in:
parent
8e8e6cafec
commit
ef184a2cb4
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ class AuthLogin
|
|||
protected function userProfile($user)
|
||||
{
|
||||
if (empty($user->profile)) {
|
||||
if($user->created_at->lt(now()->subDays(1))) {
|
||||
if($user->created_at->lt(now()->subDays(1)) && empty($user->status)) {
|
||||
$p = Profile::withTrashed()->whereUserId($user->id)->first();
|
||||
if($p) {
|
||||
$p->restore();
|
||||
|
|
Loading…
Reference in a new issue