fix(rsocials): use space-scoped data instead of global scope
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 <noreply@anthropic.com>
This commit is contained in:
parent
12d3e86e13
commit
aad08c2eec
|
|
@ -708,7 +708,7 @@ export const socialsModule: RSpaceModule = {
|
||||||
name: "rSocials",
|
name: "rSocials",
|
||||||
icon: "📢",
|
icon: "📢",
|
||||||
description: "Federated social feed aggregator for communities",
|
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 }],
|
docSchemas: [{ pattern: "{space}:socials:data", description: "Threads and campaigns", init: socialsSchema.init }],
|
||||||
routes,
|
routes,
|
||||||
publicWrite: true,
|
publicWrite: true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue