You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Specific to "pleroma" feature set:**: Specify `content_type` to set
the content type of your post on Pleroma. It accepts 'text/plain' (default),
'text/markdown', 'text/html' and 'text/bbcode'. This parameter is not
supported on Mastodon servers, but will be safely ignored if set.
However, in the actual logic this is enforced very strictly:
Expected behaviour: when setting this flag on an incompatible instance (eg. Mastodon) it's either sent to the server (which is safe?) or silently dropped. That way, clients of the library are abstracted from the underlying Mastodon server type.
Actual behaviour: exception is raised.
I'm happy to correct either the code or the docs. It's not clear to me which is the intended behaviour.
Apologies if I've got the wrong end of the stick.
The text was updated successfully, but these errors were encountered:
yeah I think the docs should be the behaviour we have (or, ideally: configurable at module level)
"not Mainline Mastodon" support is kind of a mess and needs to be reworked, probably, but if you want to go for a fix, I'd ask you to just take the check out
From the documentation:
However, in the actual logic this is enforced very strictly:
Mastodon.py/mastodon/statuses.py
Line 118 in 47aa316
Expected behaviour: when setting this flag on an incompatible instance (eg. Mastodon) it's either sent to the server (which is safe?) or silently dropped. That way, clients of the library are abstracted from the underlying Mastodon server type.
Actual behaviour: exception is raised.
I'm happy to correct either the code or the docs. It's not clear to me which is the intended behaviour.
Apologies if I've got the wrong end of the stick.
The text was updated successfully, but these errors were encountered: