Skip to content

feat: add org avatar rule#135

Merged
strongs merged 2 commits into
mainfrom
strongs/infreng-324-add-org-avatar-rule-to-synapse
Jun 10, 2026
Merged

feat: add org avatar rule#135
strongs merged 2 commits into
mainfrom
strongs/infreng-324-add-org-avatar-rule-to-synapse

Conversation

@strongs

@strongs strongs commented Jun 9, 2026

Copy link
Copy Markdown
Member

Problem:
Org avatars are served from /organization-avatar/:slug/:id instead of /organizations/:slug/avatar, because cookie-less asset URLs need a static path prefix and the latter doesn't have one (the slug comes first). Synapse routes by cell, so it needs to learn how to resolve this new path shape to the org's cell.

Fix:
Adds a slug-based locator route using the existing cell_from_organization resolver, which extracts the org slug from the captured {organization} segment and looks up its cell.

notes:

  • path uses an explicit match rather than a trailing wildcard (/{organization}/*) because the same endpoint has a deprecated no-slug form, and this would match - incorrectly - with the wildcard

Refs INFRENG-324

@strongs strongs requested a review from a team as a code owner June 9, 2026 23:01
@linear-code

linear-code Bot commented Jun 9, 2026

Copy link
Copy Markdown

INFRENG-324

@strongs strongs merged commit 207de4a into main Jun 10, 2026
20 checks passed
@strongs strongs deleted the strongs/infreng-324-add-org-avatar-rule-to-synapse branch June 10, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants