kopia lustrzana https://github.com/pixelfed/pixelfed
Update AuthLogin listener
rodzic
8e8e6cafec
commit
ef184a2cb4
|
@ -42,7 +42,7 @@ class AuthLogin
|
||||||
protected function userProfile($user)
|
protected function userProfile($user)
|
||||||
{
|
{
|
||||||
if (empty($user->profile)) {
|
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();
|
$p = Profile::withTrashed()->whereUserId($user->id)->first();
|
||||||
if($p) {
|
if($p) {
|
||||||
$p->restore();
|
$p->restore();
|
||||||
|
|
Ładowanie…
Reference in New Issue