Comments (6)
Yes, exactly. Sorry if that was a bit confusing.
All of the current API endpoints for fetching posts (like the one above) can possibly return legacy posts alongside new NPF posts, depending on how the post was made. To maintain backwards compatibility, new NPF posts will look and act like legacy text
/regular
type posts using these endpoints (hence why they have body
set). You can change this behavior and have post content served consistently as NPF by setting npf=true
via a query string parameter, which is more closely aligned with how we deal with post content within Tumblr's official clients.
from docs.
I think you should state that in the docs, it's not really clear.
Sure, happy to try to make this clearer. I'll see what I can do. 👌
from docs.
This is likely a consequence of the newer post being saved in the Neue Post Format, and the older one being saved in the legacy format. Generally speaking, post types are becoming deprecated on Tumblr under the hood. You can read more about this here and on the Engineering blog in general, as well as the documentation in this repo for the NPF spec. I strongly encourage you to check out leveraging ?npf=true
and the Neue Post Format JSON so you can get consistent results here. You can still use filters like /posts/photo
, but it may not always work the way you expect for new posts, see the legacy post type mapping here. Hope this helps!
from docs.
Just to understand better, you mean that the above weird answer is a consequence of requesting a NPF post over the old API?
from docs.
Thank you for your answer @cyle! I've tried and it works with npf=true
.
I think you should state that in the docs, it's not really clear.
from docs.
Updated the docs with some blurbs about this, FYI ba6c02e
from docs.
Related Issues (20)
- How do I work with the versions of the site that still use window.Tumblr (uppercase)? HOT 11
- Private redirect URLs for OAuth2 fail validation HOT 3
- Add avatar image links to the blog.theme object in NPF data HOT 2
- `formatting` and `indent_level` don't seem to work like documented HOT 2
- Localhost redirect URI ignoring port HOT 3
- Endpoints to block (indivual & bulk) & follow blogs do not accept application/json as a payload - Confirmed user error HOT 15
- Reply/Note endpoint not documented? HOT 1
- Avatar URL not returned in /notes endpoint HOT 6
- Unique user identifier HOT 2
- Unable to retrieve information from certain users HOT 4
- Community Labels via API HOT 4
- Audio posts appear wonky on custom themes HOT 2
- API console seems to not work HOT 7
- Can't create access tokens HOT 6
- NPF: `tumblrmart_accessories` only returns the `blue-checkmark` and not other badges HOT 2
- NPF `indent_level` – a no longer supported feature? HOT 3
- V2 API: Blog info call does not return user following information correctly HOT 1
- Tumblr SSO does not work when "Continue with Google" is used HOT 5
- api doc error
- Document Polls API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.