From 10d5a26414dc90dc89fd27de74b21e105d4fa622 Mon Sep 17 00:00:00 2001 From: Kalvin C Date: Thu, 30 Jul 2026 18:20:58 -0700 Subject: [PATCH] feat(relay): raise hosted community limit to five (#3829) ## Summary - raise the relay authoritative default community ownership limit from 3 to 5 - raise the desktop hosted-community treatment from 3 to 5 - preserve `BUZZ_MAX_COMMUNITIES_PER_OWNER` as a deployment override ## Validation - `pnpm -r check` - `cargo fmt --all -- --check` - `cargo test -p buzz-db` (94 passed, 151 Postgres-dependent tests ignored) - pre-push hooks: desktop checks/tests, Rust tests, Tauri checks (all passed; 1,995 desktop Rust tests passed) Signed-off-by: npub1dccv64krpcpse5cmkzfeh998cftungyatw3djt8jwdw6g43f7fyqzzmrf7 <6e30cd56c30e030cd31bb0939b94a7c257c9a09d5ba2d92cf2735da45629f248@buzz.block.builderlab.xyz> Co-authored-by: npub1dccv64krpcpse5cmkzfeh998cftungyatw3djt8jwdw6g43f7fyqzzmrf7 <6e30cd56c30e030cd31bb0939b94a7c257c9a09d5ba2d92cf2735da45629f248@buzz.block.builderlab.xyz> --- crates/buzz-db/src/relay_members.rs | 2 +- desktop/src/features/communities/hostedCommunityApi.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/buzz-db/src/relay_members.rs b/crates/buzz-db/src/relay_members.rs index 3805745f9..bfc56f82d 100644 --- a/crates/buzz-db/src/relay_members.rs +++ b/crates/buzz-db/src/relay_members.rs @@ -376,7 +376,7 @@ pub enum TransferResult { /// Default maximum number of communities a single pubkey can own. Enforced at /// the relay layer — the authoritative layer — so that concurrent transfers or /// transfer-vs-create races cannot both pass a preflight count. -pub const MAX_COMMUNITIES_PER_OWNER: i64 = 3; +pub const MAX_COMMUNITIES_PER_OWNER: i64 = 5; /// Effective per-owner community limit for this deployment. /// diff --git a/desktop/src/features/communities/hostedCommunityApi.ts b/desktop/src/features/communities/hostedCommunityApi.ts index 16f9f9256..0aca17a17 100644 --- a/desktop/src/features/communities/hostedCommunityApi.ts +++ b/desktop/src/features/communities/hostedCommunityApi.ts @@ -1,7 +1,7 @@ import { invoke } from "@tauri-apps/api/core"; export const HOSTED_COMMUNITY_SUFFIX = "communities.buzz.xyz"; -export const HOSTED_COMMUNITY_LIMIT = 3; +export const HOSTED_COMMUNITY_LIMIT = 5; export const VALID_HOSTED_COMMUNITY_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/; export type BuilderlabAuth = {