hyperspacedev / hyperspace

The new beautiful, fluffy client for Mastodon in React + TypeScript

Home Page:https://hyperspace.marquiskurt.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[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:

  1. Create an account with instance limit of 501+ chars (f.ex. https://mastodon.ml)
  2. Click on "Create toot"
  3. 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.

Should appear in v1.1.0-beta1, but here's what this would effectively look like in the Composer

Screen Shot 2019-11-17 at 14 12 55

Great, thank you!

Fixed with v1.1.0-beta1