diff --git a/CHANGELOG.md b/CHANGELOG.md index 788d602..5463e66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 4.1.2 - 2024-09-09 + +### Changed + +- Added ether/seo support + ## 4.1.1 - 2024-09-09 ### Changed diff --git a/src/console/controllers/DefaultController.php b/src/console/controllers/DefaultController.php index 15e69d3..4a0e7d7 100644 --- a/src/console/controllers/DefaultController.php +++ b/src/console/controllers/DefaultController.php @@ -74,7 +74,8 @@ private function getUnusedAssets(?string $volume = null) $subQueryContent = (new Query()) ->select('elementId as id') ->from(Table::ELEMENTS_SITES) - ->where("`content` LIKE CONCAT('%asset:', assets.id, ':%')"); + ->where("`content` LIKE CONCAT('%asset:', assets.id, ':%')") + ->orWhere("`content` LIKE CONCAT('%\"imageId\": \"', assets.id, '\",%')"); $query = (new Query()) ->select(['assets.id', 'assets.filename']) diff --git a/src/services/Asset.php b/src/services/Asset.php index 8354654..ce1a949 100644 --- a/src/services/Asset.php +++ b/src/services/Asset.php @@ -90,6 +90,7 @@ private function queryContents(AssetElement $asset): array ->select(['elementId as id', 'siteId']) ->from(Table::ELEMENTS_SITES) ->where(['like', 'content', "asset:{$asset->id}:"]) + ->orWhere(['like', 'content', "\"imageId\": \"{$asset->id}\","]) ->all(); }