From aad08c2eec15e72460ec4e0ea81baa7546f0a01f Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Tue, 10 Mar 2026 01:27:00 -0700 Subject: [PATCH] fix(rsocials): use space-scoped data instead of global scope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rsocials had defaultScope: "global" but client components passed the raw space slug, creating threads in space-specific docs (e.g. commonshub). Server routes then looked in the non-existent "global" doc → 404. Changed to defaultScope: "space" to match how client actually works. Co-Authored-By: Claude Opus 4.6 --- modules/rsocials/mod.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rsocials/mod.ts b/modules/rsocials/mod.ts index 7ea05b6..de6a554 100644 --- a/modules/rsocials/mod.ts +++ b/modules/rsocials/mod.ts @@ -708,7 +708,7 @@ export const socialsModule: RSpaceModule = { name: "rSocials", icon: "📢", description: "Federated social feed aggregator for communities", - scoping: { defaultScope: "global", userConfigurable: true }, + scoping: { defaultScope: "space", userConfigurable: true }, docSchemas: [{ pattern: "{space}:socials:data", description: "Threads and campaigns", init: socialsSchema.init }], routes, publicWrite: true,