From 58bb5eaeae929697f989a2a489abad498bfc815b Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 23 Oct 2020 07:37:06 +0200 Subject: [PATCH] Extra check on activity for #3974 --- app/Services/Internal/Update/AccountUpdateService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Internal/Update/AccountUpdateService.php b/app/Services/Internal/Update/AccountUpdateService.php index 3ed09706b8..ae7967bc65 100644 --- a/app/Services/Internal/Update/AccountUpdateService.php +++ b/app/Services/Internal/Update/AccountUpdateService.php @@ -200,7 +200,7 @@ class AccountUpdateService */ private function updatePreferences(Account $account, array $data): void { - if (array_key_exists('active', $data) && false === $data['active']) { + if (array_key_exists('active', $data) && (false === $data['active'] || 0 === $data['active'])) { $preference = app('preferences')->getForUser($account->user, 'frontpageAccounts'); if (null !== $preference) { $removeAccountId = (int)$account->id;