How do I set up mastodon ui?
I use mastodon-bird-ui.
https://github.com/ronilaukkarinen/mastodon-bird-ui
But no matter how much I look at it, I don't see how to display the number of likes or increase the number of characters here.
1 Reply
I'm not very familiar with running Mastodon, but I was able to find some information that I think will help you with this issue.
From what I have found, you are able to change the max number of characters by editing the compose_form.jsx and status_length_validator.rb files.
In the compose_form.jsx file you will need to change two lines from the default 500 to whatever character limit you would prefer. They should look something like this:
return !(isSubmitting || isUploading || isChangingUpload || length(fulltext) > 500 || (isOnlyWhitespace && !anyMedia));
<CharacterCounter max={500} text={this.getFulltextForCharacterCounting()} />
The compose_form.jsx file is usually found in live/app/javascript/mastodon/features/compose/components/
In status_length_validator.rb you will need to update this block in the same way:
class StatusLengthValidator < ActiveModel::Validator
MAX_CHARS = 500
URL_PLACEHOLDER_CHARS = 23
URL_PLACEHOLDER = 'x' * 23
This file is usually found in live/app/validators/
I found a good blog post here with some more details on the process that may be good to reference:
As for changing the UI to show the number of likes, from what I have seen you are not the only person running into this issue. The developer is really active on github so creating an issue there may be the best option to resolve the problem or have the feature added if it isn't already available.
Here is a direct link to their issues page: https://github.com/mastodon/mastodon/issues