Skip to content

Decide message size limits and options #352

@miguelfreitas

Description

@miguelfreitas

I'd like to discuss some message size limits we should implement in twister-html.

Background:

so i'd favor some reasonably agreed limits like the suggested here miguelfreitas/twister-core#76. The 256 chars limit was endorsed by @gubatron @kseistrup @abiliojr @Qqwy @lohang and @jpfox (iirc @blog2read voted for 1024)

So my current suggestion (for discussion!) is:

  1. Implement an user-defined limit on twister-html on maximum characters that should be shown on received twists. My vote is that this value should be 256 by default. So we'd have a "soft" limit we may easily change in future without protocol breakage.

  2. Should we display the remaining characters of the post when user clicks to expand it? Or just clip it for displaying both collapsed and expanded? That's also a good point for discussion.

  3. Implement warnings on text editing to report when 140 characters are reached ("older twister clients won't show this post entirely") and 256 characters ("this post is too long, it may be refused by some nodes and not appear on mentions")

  4. The nice post preview added by @slr could use different colors for the first 140 characters, like twitter does.

  5. The DM never really had a 140 characters limit. We have a 2048 byte limit for the encrypted total size, so it's hard to know exactly what the real limit is. Maybe increasing it to 256 or 512 should be fine (some sites claim chinese uses, on average, 3 bytes per utf8 char).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions