From: Tim Düsterhus Date: Fri, 20 Aug 2021 07:31:14 +0000 (+0200) Subject: Check `coverPhotoHasWebP` in UserRebuildDataWorker X-Git-Tag: 5.4.5_RC_1~32^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=233a24546d8ab365d4f415183dd2e4ab7be0d85b;p=GitHub%2FWoltLab%2FWCF.git Check `coverPhotoHasWebP` in UserRebuildDataWorker This is already checked in `->createWebpVariant()`, but with the `->update()` added in the previous commit this saves some work. --- 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());