New user: “Um hello is there a good reason why my bio can't be more characters??”
Me, dead serious: “No.”
@u2764 no good reason why you can't post more than 500 characters at a time either. if you have your own instance you can hack those limits :)
@KitRedgrave or if you're on Mastodon CE you can set the environment variable I added ;)
@u2764 soon enough :)
@KitRedgrave @u2764 we should add a bio-length environment variable in CE.
@shel @KitRedgrave Or just make it the same as toot-length
@u2764 @KitRedgrave where the hell is the bio code... is it not called bio??? i can't even see it in the view for profiles... ugh...
@shel @KitRedgrave search for 160 lol
@KitRedgrave @shel (use the GitHub "this repository" search is what i'd do)
@u2764 @KitRedgrave I was using it before but yeah searching 160 is helping. Unfortunately the number 160 is encoded in all the locales too x_x...
@u2764 to reference the variable it's just { post-length } right?
@u2764 or do i need to import the variable?
@shel Rails.x.config.max_length i believe
@shel inside `#{}` in you're in a string iirc
@u2764 so I should write `#{ Rails.x.config.max_length }` each time when the number 160 appears?
@shel Yes (I'm assuming the localization files are on the rails side and not javascripts?)
@u2764 yeah I'm not modifying the locales just the settings right now

@shel Sorry it's Rails.config.x.max_chars the x cones after config. So if you're talking like this:

validates :note, length: { maximum: 160 }, if: 'local?'

should be this:

validates :note, length: { maximum: Rails.config.x.max_chars }, if: 'local?'

@u2764 Cool. the branch feature-biolength I think should now have it so your bio length is the same as post length, although the text "maximum 160" is still there. I'm at work so I can't test it in vagrant but if you already have a CE vagrant box up you're free to pull feature-biolength and see if it works
@shel I'm gonna fix it up and then send a PR if that's ok~
@u2764 yes plz ❤
@shel wow i gave you the wrong variable name lol. fixing~
@shel um. somebody broke the frontend. um.
@shel it's not loading the javascripts and i don't know why. i'm just on master
@shel i had to update rails and stuff… maybe it's just a problem on my end… but anyway i can't test this either 😅