diff --git a/CHANGELOG.md b/CHANGELOG.md index e225c7b..353480a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.0.1 - 2022-05-10 +### Fixed +- Fix GraphQL support + ## 4.0.0 - 2022-05-04 ### Fixed - Support Craft v4 (via @niektenhoopen) diff --git a/src/gql/SeoSocialData.php b/src/gql/SeoSocialData.php index b14f832..0b25915 100644 --- a/src/gql/SeoSocialData.php +++ b/src/gql/SeoSocialData.php @@ -4,6 +4,7 @@ namespace ether\seo\gql; +use Craft; use craft\gql\GqlEntityRegistry; use craft\gql\interfaces\elements\Asset as AssetInterface; use craft\helpers\Gql; @@ -52,12 +53,11 @@ public static function getType(): ObjectType /** * Get fields which may only be used depending on the craft Gql config * - * @throws \craft\errors\GqlException */ protected static function getConditionalFields(): array { // Images may be in any public volume, so verify them all. - $volumes = \Craft::$app->volumes->getPublicVolumes(); + $volumes = Craft::$app->volumes->getViewableVolumes(); $awareOfAllPublicVolumes = false; if (!empty($volumes)) {