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

Drop special handling for blogIdentifier parameters #162

Merged
merged 6 commits into from
Aug 1, 2023

Conversation

sirreal
Copy link
Member

@sirreal sirreal commented Aug 1, 2023

Drop special handling for :blogIdentifier path parameters.
Add integration test for 3 forms of blogIdentifier path parameters.

The API documentation is clear that three forms are allowed.
See https://www.tumblr.com/docs/en/api/v2#blog-identifiers.

  • Blog name e.g. staff for https://staff.tumblr.com/
  • Hostname e.g. staff.tumblr.com
  • Universally unique identifier (UUID) e.g. t:0aY0xL2Fi1OFJg4YxpmegQ for staff

Special treatment of blogIdentifiers was buggy and broke the UUID form.
It was unnecessary, the API handles blog name or hostname properly
(staff is treated the same as staff.tumblr.com).

Closes #93

@sirreal sirreal merged commit efb2e88 into master Aug 1, 2023
@sirreal sirreal deleted the remove-special-blog-identifier-handling branch August 1, 2023 07:48
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

Successfully merging this pull request may close these issues.

Fails to get blog posts if blog unique identifiers is used.
2 participants