From 233a24546d8ab365d4f415183dd2e4ab7be0d85b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 20 Aug 2021 09:31:14 +0200 Subject: [PATCH] Check `coverPhotoHasWebP` in UserRebuildDataWorker This is already checked in `->createWebpVariant()`, but with the `->update()` added in the previous commit this saves some work. --- .../files/lib/system/worker/UserRebuildDataWorker.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/lib/system/worker/UserRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/UserRebuildDataWorker.class.php index ed61d9a67c..b8b4e29937 100644 --- a/wcfsetup/install/files/lib/system/worker/UserRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/UserRebuildDataWorker.class.php @@ -295,6 +295,7 @@ class UserRebuildDataWorker extends AbstractRebuildDataWorker $userProfiles = new UserProfileList(); $userProfiles->getConditionBuilder()->add("user_table.userID IN (?)", [$userIDs]); $userProfiles->getConditionBuilder()->add("user_table.coverPhotoHash IS NOT NULL"); + $userProfiles->getConditionBuilder()->add("user_table.coverPhotoHasWebP = ?", [0]); $userProfiles->readObjects(); foreach ($userProfiles as $userProfile) { $editor = new UserEditor($userProfile->getDecoratedObject()); -- 2.20.1