@commonpub/layer 0.3.24 → 0.3.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -47,13 +47,13 @@ Create `server/utils/config.ts` to load the config on the server side. See `apps
47
47
 
48
48
  ## What's Included
49
49
 
50
- ### Pages (20+ routes)
50
+ ### Pages (70+ routes)
51
51
 
52
52
  Content CRUD, hub feeds, learning paths, docs sites, admin panel, federation management, user profiles, messaging, notifications, search, and more.
53
53
 
54
- ### Components (30+)
54
+ ### Components (100+)
55
55
 
56
- Content editor (`CpubEditor`), content cards, author rows, comment sections, engagement bars, federation UI, notification items, message threads, and more.
56
+ Content editor (`CpubEditor`), content cards, author rows, comment sections, engagement bars, federation UI, notification items, message threads, block renderers, and more.
57
57
 
58
58
  ### Composables (19)
59
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonpub/layer",
3
- "version": "0.3.24",
3
+ "version": "0.3.25",
4
4
  "type": "module",
5
5
  "main": "./nuxt.config.ts",
6
6
  "files": [
@@ -45,14 +45,14 @@
45
45
  "vue-router": "^4.3.0",
46
46
  "zod": "^4.3.6",
47
47
  "@commonpub/auth": "0.5.0",
48
+ "@commonpub/config": "0.7.1",
49
+ "@commonpub/editor": "0.5.0",
48
50
  "@commonpub/docs": "0.5.2",
49
51
  "@commonpub/protocol": "0.9.5",
50
- "@commonpub/editor": "0.5.0",
51
- "@commonpub/schema": "0.8.12",
52
+ "@commonpub/learning": "0.5.0",
52
53
  "@commonpub/server": "2.15.0",
53
- "@commonpub/config": "0.7.1",
54
54
  "@commonpub/ui": "0.7.1",
55
- "@commonpub/learning": "0.5.0"
55
+ "@commonpub/schema": "0.8.12"
56
56
  },
57
57
  "scripts": {}
58
58
  }
@@ -36,8 +36,8 @@ export default defineEventHandler(async (event) => {
36
36
  // CORS — WebFinger must be accessible from browser-based AP clients
37
37
  setResponseHeader(event, 'access-control-allow-origin', '*');
38
38
 
39
- // Instance actor lookup: acct:domain@domain → /actor Service
40
- if (parsed.username === instanceDomain || parsed.username === config.instance.domain) {
39
+ // Instance actor lookup: acct:domain@domain or acct:instance@domain → /actor Service
40
+ if (parsed.username === instanceDomain || parsed.username === config.instance.domain || parsed.username === 'instance') {
41
41
  const actorUri = `https://${instanceDomain}/actor`;
42
42
  setResponseHeader(event, 'content-type', 'application/jrd+json');
43
43
  return buildWebFingerResponse({