[Request] Characters limit is hardcoded
MasterGroosha opened this issue · comments
Describe the bug
It looks like app is hardcoded for 500 characters limit (as on flagship instance). However, this is not true for the Fediverse, since each instance can set any limit per toot.
To Reproduce
Steps to reproduce the behavior:
- Create an account with instance limit of 501+ chars (f.ex. https://mastodon.ml)
- Click on "Create toot"
- Try creating post with 501 characters or more
Expected behavior
App should get characters limit from each instance separately. Currently you cannot create post with more than 500 chars no matter which limit it is.
App Information (please complete the following information):
- OS: Linux
- Version Hyperspace v1.0.3
Issue-Label Bot is automatically applying the label bug
to this issue, with a confidence of 0.98. Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
We'll work on this and see what we can do. We hadn't found a way before to get the limit, but now it would be a matter of getting that data before reaching a request limit.
Also re-assigning as an enhancement request as this doesn't necessarily break the app.
Update: It appears that there is not an official API endpoint to grab the maximum character limit, so we'll make a setting for this instead.
Great, thank you!
Fixed with v1.1.0-beta1