Don't update last visit date for deleted and banned users

Fixes #665
This commit is contained in:
celestora 2022-08-19 17:04:24 +03:00
parent b61ea926f9
commit 1a4696da91

View file

@ -250,7 +250,7 @@ abstract class OpenVKPresenter extends SimplePresenter
$userValidated = 1; $userValidated = 1;
$cacheTime = 0; # Force no cache $cacheTime = 0; # Force no cache
if ($this->user->identity->onlineStatus() == 0) { if($this->user->identity->onlineStatus() == 0 && !($this->user->identity->isDeleted() || $this->user->identity->isBanned())) {
$this->user->identity->setOnline(time()); $this->user->identity->setOnline(time());
$this->user->identity->save(); $this->user->identity->save();
} }