From 1a4696da91eccb4a3a26e36ad439243d9f792ed1 Mon Sep 17 00:00:00 2001 From: celestora Date: Fri, 19 Aug 2022 17:04:24 +0300 Subject: [PATCH] Don't update last visit date for deleted and banned users Fixes #665 --- Web/Presenters/OpenVKPresenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Presenters/OpenVKPresenter.php b/Web/Presenters/OpenVKPresenter.php index 1cf1e86f..2a19fa03 100755 --- a/Web/Presenters/OpenVKPresenter.php +++ b/Web/Presenters/OpenVKPresenter.php @@ -250,7 +250,7 @@ abstract class OpenVKPresenter extends SimplePresenter $userValidated = 1; $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->save(); }