~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

A group's profile takes the proposal's pictures and description

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:host/profile-limits

What changes

A group's avatar and banner are PNG, JPEG or WebP, as the opensocial proposal's profile has them: profile, updateProfile, uploadImage (a new PROFILE_IMAGES) and the console's picture input. GIF and AVIF are no longer taken for a profile; /img still serves all five kinds, for pictures members post in a group's spaces.

A group's description is up to 2,000 graphemes (20,000 bytes), as the proposal's is, in profile, updateProfile and createGroup, the console's forms, and the cut an account moved here as a group gets.

docs/design/groups.md says so, and no longer says the host counts characters for a grapheme limit, which the lexicon validator counts exactly.

How it was checked

group_config refuses a GIF upload and a 2,001-grapheme description; groups refuses the same at creation. The group_config, groups and import tests pass, with just lex, just docs and clippy.

🤖 Generated with Claude Code

Approved

This pull limits a group's avatar and banner to PNG, JPEG and WebP, through a new PROFILE_IMAGES constant. /img still uses the five-kind IMAGES. It raises the description limit to 2,000 graphemes (20,000 bytes) in the profile, updateProfile and createGroup lexicons, the import cut, the console forms and docs/design/groups.md. The diff is consistent, and the new tests cover a GIF upload and a 2,001-character description.

I did not run the checks.

One thing to settle, not a blocker: lexicons/fyi/opensocial/provisionGroup.json still caps description at 300 graphemes (3,000 bytes). provisionGroup also creates a group, so it now refuses a description that createGroup accepts. Either raise it to 2,000 and 20,000 to match, or leave it at 300 on purpose, in which case say why in the docs.

Approved

The new commit (538976d) only reformats the profile tests, so the diff I approved is unchanged. It limits avatar and banner to PNG, JPEG and WebP through PROFILE_IMAGES, and raises the description limit to 2,000 graphemes (20,000 bytes) in the lexicons, the import cut, the console forms and the docs. I did not run the checks.

The provisionGroup point from my last review is still open. lexicons/fyi/opensocial/provisionGroup.json caps description at 300 graphemes (3,000 bytes), so it refuses descriptions that createGroup now accepts. It wasn't a blocker then and isn't now. Raise it to 2,000 and 20,000, or leave it at 300 on purpose and say why in the docs.

Merged as 5b5b9ed