Skip to content

NSFW filters are not properly retrieved #138

Description

@raiseerco

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions