Closed steve-bate closed 4 weeks ago
Have you reported this to the plugin project and/or mastodon.py? Seems that is something they should consider sorting out ...
It's not a mastodon.py
issue since it supports a version check opt-out. What's not clear to me yet is if this opt-out is global or per api instance. Mastodon will not work without the API version check and WordPress won't work with it, so we need an api-level configuration. Currently, I'm seeing this configs conflict with each other, but I don't know if that's because of the way the api instances are being created or not..
This also isn't a WordPress issue because there's no restrictions on the Mastodon version string format.
One could argue that it's an issue with specific client applications, but if those applications need to know the presence or not of specific features (like whether whether /api/v1/search
or /api/v2/search
are available), they don't have much choice than to determine that based on the Mastodon version.
So what's the next step here?
This is my suggestion:
test_mastodon_node.py
tests to run with the latest node redesign. I think it would be best if you do this.Blocked by #308
Aren't we deleting the unit tests referred to in #308 in favor of the new feditest integration self-tests?
In your three-bullet list up there, with #355 we are now done with 1. and 2. Can you work on number 3?
The WordPress version for my installation is "WordPress/6.6.1". This doesn't work with Mastodon.py without some special configuration. It looks like Mastodon.py supports explicitly specifying a Mastodon version or setting
version_check_mode
to"none"
, which might have other side effects. This could potentially be done on a per Node subclass basis.Related-ish: #282
As a side note, the version format also prevents me from adding the server to my iOS IceCubes client app. I've seen the same issue with my own Masto API implementation if I didn't use something that looked like a Mastodon version string. I wouldn't be surprised if this affects other client apps too since they often use the Mastodon version to know what features are available.