Skip to content

Commit

Permalink
Added ether/seo support
Browse files Browse the repository at this point in the history
  • Loading branch information
Roel van Hintum committed Sep 9, 2024
1 parent a9a17c2 commit a44d1bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/console/controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down
1 change: 1 addition & 0 deletions src/services/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit a44d1bf

Please sign in to comment.