Skip to content

Bug: PostType strings in SubredditInfo.allAllowedPostTypes are returned in uppercase instead of lowercase #276

Description

@Chosen1PR

The official documentation shows that strings with an alias of PostType are supposed to be in lowercase, but testing reveals that in SubredditInfo.allAllowedPostTypes, they are stored in uppercase (e.g., "TEXT" instead of "text").

See the below screenshot; I simply logged all the PostType strings in SubredditInfo.allAllowedPostTypes to the console.

Image

In my code, I've worked around this by casting the PostType to a string and calling toLowerCase() on it. Nevertheless, I felt I should report this bug.

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