Bump the default character limit #524

Closed
opened 5 years ago by bugaevc · 0 comments
bugaevc commented 5 years ago (Migrated from github.com)

I was trying to transfer a post of mine from Medium and bumped into the size limit.

It looks like there's no character number limit per se, but there's a form size limit, declared here:

let form_size = var("FORM_SIZE")
    .unwrap_or_else(|_| "32".to_owned())
    .parse::<u64>()
    .unwrap();
// ...
c.set_limits(
    Limits::new()
        .limit("forms", form_size * 1024)
        .limit("json", activity_size * 1024),
);

A form size of 32 KB essentially limits posts to ≈ 28k characters (because of url-encoding and other fields). This is a step up from Mastodon's 500 char limit, but still not enough for some of the longer blog posts. This post, for example, is ≈ 55k characters long.

Of course the limit is configurable, but I propose bumping the default, too.

I was trying to transfer a post of mine from Medium and bumped into the size limit. It looks like there's no character number limit per se, but there's a form size limit, declared [here](https://github.com/Plume-org/Plume/blob/master/plume-models/src/config.rs#L26-L57): ```rust let form_size = var("FORM_SIZE") .unwrap_or_else(|_| "32".to_owned()) .parse::<u64>() .unwrap(); // ... c.set_limits( Limits::new() .limit("forms", form_size * 1024) .limit("json", activity_size * 1024), ); ``` A form size of 32 KB essentially limits posts to ≈ 28k characters (because of url-encoding and other fields). This is a step up from Mastodon's 500 char limit, but still not enough for some of the longer blog posts. [This post](http://0pointer.de/blog/projects/systemd), for example, is ≈ 55k characters long. Of course the limit is configurable, but I propose bumping the default, too.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#524
Loading…
There is no content yet.