Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSFW filters are not properly retrieved #138

Open
raiseerco opened this issue Sep 12, 2023 · 0 comments
Open

NSFW filters are not properly retrieved #138

raiseerco opened this issue Sep 12, 2023 · 0 comments

Comments

@raiseerco
Copy link

Created several posts with PublicationContentWarning.Nsfw properties set, they are well stored, but once I retrieve them the contentWarning property is missing.

Example of API query for retrieving NSFW:

  const resExplore = useQuery(ExplorePublicationsDocument, {
    variables: {
      request: {
        sortCriteria: PublicationSortCriteria.Latest,
        noRandomize: true,
        sources: [NATA_SOCIAL_SOURCE],
        limit: limitPosts,
        publicationTypes: [PublicationTypes.Post],
        customFilters: [CustomFiltersTypes.Gardeners],
        metadata: {
          locale: 'en',
          tags: { oneOf: tags },
          contentWarning: {
            includeOneOf: [
              PublicationContentWarning.Nsfw
            ]
          }
        }
      }
    }
  });

Retrieved data:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant