Skip to content

Commit

Permalink
Fix graphql support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed May 10, 2022
1 parent 4296e0a commit adf052d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/gql/SeoSocialData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit adf052d

Please sign in to comment.