[behance] fix 'collection' extraction

This commit is contained in:
Mike Fährmann
2021-08-10 00:48:31 +02:00
parent 229498b8aa
commit f9096584ab

View File

@@ -226,12 +226,12 @@ query GetMoodboardItemsAndRecommendations(
) {
viewer @include(if: $shouldGetMoodboardFields) {
isOptedOutOfRecommendations
isAdmin
}
moodboard(id: $id) {
...moodboardFields @include(if: $shouldGetMoodboardFields)
items(first: $firstItem, after: $afterItem) @include(if: $shouldGetItems)
{
items(first: $firstItem, after: $afterItem) @include(if: $shouldGetItems) {
pageInfo {
endCursor
hasNextPage
@@ -266,6 +266,7 @@ query GetMoodboardItemsAndRecommendations(
firstName
location
locationUrl
isFollowing
images {
size_50 {
url
@@ -300,6 +301,15 @@ query GetMoodboardItemsAndRecommendations(
url
isPrivate
slug
license {
license
description
id
label
url
text
images
}
fields {
label
}
@@ -315,6 +325,7 @@ query GetMoodboardItemsAndRecommendations(
location
locationUrl
isProfileOwner
isFollowing
images {
size_50 {
url
@@ -401,6 +412,12 @@ query GetMoodboardItemsAndRecommendations(
...projectFields
}
colors {
r
g
b
}
exifData {
lens {
...exifDataValueFields
@@ -446,7 +463,7 @@ query GetMoodboardItemsAndRecommendations(
variables = {
"afterItem": "MAo=",
"firstItem": 40,
"id" : self.collection_id,
"id" : int(self.collection_id),
"shouldGetItems" : True,
"shouldGetMoodboardFields": False,
"shouldGetRecommendations": False,