diff options
author | tobiasKaminsky <tobias@kaminsky.me> | 2022-10-13 09:04:27 +0200 |
---|---|---|
committer | tobiasKaminsky <tobias@kaminsky.me> | 2022-10-13 09:04:27 +0200 |
commit | cfdca11ad915ed9e30620fd4f267a1f59401181d (patch) | |
tree | 4693d08ee56fc45cdd27501a090e8aa464471812 /apps/user_status/lib | |
parent | 1dce303666239abd09a4add323b32a814186793a (diff) | |
download | nextcloud-server-cfdca11ad915ed9e30620fd4f267a1f59401181d.tar.gz nextcloud-server-cfdca11ad915ed9e30620fd4f267a1f59401181d.zip |
Filter out backup user status (those beginning with _ as userId)
Diffstat (limited to 'apps/user_status/lib')
-rw-r--r-- | apps/user_status/lib/Dashboard/UserStatusWidget.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/user_status/lib/Dashboard/UserStatusWidget.php b/apps/user_status/lib/Dashboard/UserStatusWidget.php index 5a89040dfa5..50cca725a55 100644 --- a/apps/user_status/lib/Dashboard/UserStatusWidget.php +++ b/apps/user_status/lib/Dashboard/UserStatusWidget.php @@ -152,7 +152,8 @@ class UserStatusWidget implements IAPIWidget, IIconWidget, IOptionWidget { $this->service->findAllRecentStatusChanges($limit + 1, 0), static function (UserStatus $status) use ($userId, $since): bool { return $status->getUserId() !== $userId - && ($since === null || $status->getStatusTimestamp() > (int) $since); + && ($since === null || $status->getStatusTimestamp() > (int) $since) + && !str_starts_with($status->getUserId(), "_"); } ), 0, |