nextcloud/apps/user_status/lib/Db
Anna Larch fbc7fb1ba0 fix(user_status): exclude backups from cleanup queries and filter from list methods
The background cleanup job operated on all rows including backups:
- clearOlderThanClearAt() deleted backup rows with expired clear_at,
  destroying saved statuses before they could be restored
- clearStatusesOlderThan() overwrote backup statuses to OFFLINE,
  corrupting saved DND/away states

Additionally, findAll() leaked backup rows into user-facing lists,
and findAllRecent() filtered backups via slow LIKE pattern instead
of the is_backup column.

Add is_backup=false filter to all four methods.

AI-Assisted-By: Claude Opus 4.6
Signed-off-by: Anna Larch <anna@nextcloud.com>
2026-06-10 14:48:58 +02:00
..
UserStatus.php chore: Apply new coding standard to all files 2026-06-01 13:46:39 +02:00
UserStatusMapper.php fix(user_status): exclude backups from cleanup queries and filter from list methods 2026-06-10 14:48:58 +02:00