Problem/Motivation

Mastodon instances only accept a certain number of characters, and the system has the facility to show how many characters there are in the post. The issue is that the push forms do not validate the input and users will instead see an error when attempting to push a string that is too long for the mastodon instance. The error will flush the form, losing the current form values, and cause user frustration.

Steps to reproduce

Install the module and configure at least one mastodon instance.
Set the character limit on the mastodon instance (or self configure the character limit).
Head to the push status form.
See the configured character limit under the text box.
Add more text than the character limit and submit.
If the mastodon instance character limit is exceeded then the form will return an error.

This applies to both the single push status form and the entity form.

Proposed resolution

Instead of returning an error the form should attempt to validate against the same character limit.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

philipnorton42 created an issue. See original summary.

philipnorton42’s picture

Title: Validate the mastodon push forms » Validate the mastodon push forms status character count
Issue summary: View changes
philipnorton42’s picture

Status: Active » Fixed

Done!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

philipnorton42’s picture

Status: Fixed » Closed (fixed)

Added to release 1.0.0-rc1.