Skip to content

Documented 404 return for /api/v1/timelines/tag/:hashtag may be incorrect #1869

@nikclayton

Description

@nikclayton

https://docs.joinmastodon.org/methods/timelines/#tag notes that a 404 response is possible if the hashtag "does not exist" (https://docs.joinmastodon.org/methods/timelines/#404-not-found).

Some quick checking on mastodon.social suggests this is incorrect, and an empty array is returned instead (which also feels like the correct behaviour).

https://mastodon.social/api/v1/timelines/tag/pO8WHFw3JSGvLAt0iyQ08g (tag generated with head -c 16 /dev/urandom | base64 | tr -dc 'a-zA-Z0-9', so it's extremely unlikely to exist) returns a 200, with a JSON body, consisting of [].

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