Follow

RCsocial.net has been further tweaked. Polls may now have up to 8 choices (double the standard Mastodon limit).

Our post character limit has long been more than the standard 500. We have settled in at 2,000 for a while. That has been further tweaked to 2021, and will continue to match AD (anno Domini - the year of our Lord).

Both of these RCsocial.net features continue to be interoperable with other federated sites. They can interact with polls originated here and display our full posts.

· · Web · 5 · 0 · 7

@George How do you increase poll choices? I'd like to do that for theres.life.

@josias
It has to be done at the source level as it is hard-coded.

In app/validators/poll_validator.rb change MAX_OPTIONS to the desired number.

In app/javascript/mastodon/features/compose/components/poll_form.js change the <button> element's attribute from
disabled={options.size >= 4} to match whatever you set MAX_OPTIONS to.

Of course, some process is necessary to keep your local changes synchronized to new upstream releases. A git fork would work for this kind of change (I have a more customized build system for RCsocial.net).

Hope all that helps.

@George Thanks. That's exactly what I was looking for. I already have changed the character limit and bio description length limits, I was just wondering where the poll information was found.

I currently don't have a good method of managing new releases with this. I just do git stash, pull, git stash apply, and then I fix the resulting mess. Haha.

@52fighters You are welcome! Thank you for being here and for your contributions. God bless you too.

@George The new character limit is cool. How and why did you make it match the current year?

@jforseth210 I changed it because I felt 500 was too low. It often effected me personally as many daily Gospel readings would not fit in their entirety. Other times it just seemed too restrictive.

It was 2,000 for a while and that seemed to be the right number. Then it occurred to me that was close to the year, which serves as a reminder to us of our Lord in its very foundation. So, I changed it to that as it is fitting for this site.

Finally, it was accomplished via Mastodon source changes since it is hard coded. RCsocial.net has a good number of such customizations not possible with unmodified Mastodon. Some of the changes are somewhat dynamic (like this one) so I also made my own build process for it (vs. git merges to upstream releases).

@George Hello everyone 💯😊 I'm very glad to be a new member of this wonderful community 🙏✝️😊

Sign in to participate in the conversation
RCsocial.net

RCsocial.net — a friendly social networking space for those with an interest in Catholicism.