Skip to content

NSFW filters are not properly retrieved #138

@raiseerco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions