Skip to content

Commit e820893

Browse files
kalvinnchaunpub1dccv64krpcpse5cmkzfeh998cftungyatw3djt8jwdw6g43f7fyqzzmrf7
andauthored
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>
1 parent 4417a14 commit e820893

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎crates/buzz-db/src/relay_members.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ pub enum TransferResult {
376376
/// Default maximum number of communities a single pubkey can own. Enforced at
377377
/// the relay layer — the authoritative layer — so that concurrent transfers or
378378
/// transfer-vs-create races cannot both pass a preflight count.
379-
pub const MAX_COMMUNITIES_PER_OWNER: i64 = 3;
379+
pub const MAX_COMMUNITIES_PER_OWNER: i64 = 5;
380380

381381
/// Effective per-owner community limit for this deployment.
382382
///

‎desktop/src/features/communities/hostedCommunityApi.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { invoke } from "@tauri-apps/api/core";
22

33
export const HOSTED_COMMUNITY_SUFFIX = "communities.buzz.xyz";
4-
export const HOSTED_COMMUNITY_LIMIT = 3;
4+
export const HOSTED_COMMUNITY_LIMIT = 5;
55
export const VALID_HOSTED_COMMUNITY_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
66

77
export type BuilderlabAuth = {

0 commit comments

Comments
 (0)