Plume-org / Plume

Federated blogging application, thanks to ActivityPub (now on https://git.joinplu.me/ — this is just a mirror)

Home Page:https://joinplu.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anyway to inhance character limit?

pullopen opened this issue · comments

Is your feature request related to a problem? Please describe.
There's character limit set in Plume, which is around 131072 characters. However, when I type Chinese, one Chinese character can occupy 9 characters in Plume, resulting into an actual limit around 14562 Chinese characters. A short novel can easily exceed it.

Describe the solution you'd like
A way for administrator to modify or inhance the character limits.

Describe alternatives you've considered
Or would you please tell me where can I modify the code to inhance the character limit? Since I'm totally a beginner and not know anything about Rust.

Additional context
A easier way to modify the character limit in .env would be better, but I suppose it would be harder to do?

You can use the FORM_SIZE environment variable (see https://github.com/Plume-org/Plume/blob/main/plume-models/src/config.rs#L42). I don't know if it is documented tho, maybe it is missing from the docs?

You can use the FORM_SIZE environment variable (see https://github.com/Plume-org/Plume/blob/main/plume-models/src/config.rs#L42). I don't know if it is documented tho, maybe it is missing from the docs?

It's definitely not in the document! Thank you very much. I wonder what is "ACTIVITY_SIZE" in the config.rs then?

ACTIVITY_SIZE is the maximum size for an ActivityPub message.

Lovely! Thanks.

I added the variables to the documentation: https://docs.joinplu.me/environment/