openvibers/openvibe.wiki Commits
Page events carry the page's title (#255)
Changes
@@@ -444,7 +444,7 @@ implemented service. Still open: a person's review of the 42 seed pages (until tPart of the [OpenVibe network](https://openvibe.network). Built in the open by [OpenVibers](https://github.com/OpenVibers).<!-- versions:start -->--- openvibe-contracts: v0.338.0++- openvibe-contracts: v0.366.0- openvibe-sdk: v0.94.0- openvibe-shared: v4.167.0- openvibe-publishing: v1.3.0@@@ -7,7 +7,7 @@"runtime": "node 22, express, PostgreSQL 18 (openvibe-sdk/db, async) + Valkey 9","port": 4800,"domain": "openvibe.wiki",-- "contracts": "openvibe-contracts v0.338.0",++ "contracts": "openvibe-contracts v0.366.0","sdk": "openvibe-sdk v0.94.0","shared": "openvibe-shared v4.167.0","packages": [@@@ -14,7 +14,7 @@"express": "^4.21.2","express-rate-limit": "^7.5.0","iovalkey": "^0.4.0",-- "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.338.0",++ "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.366.0","openvibe-publishing": "https://codeload.github.com/OpenVibers/OpenVibe.Publishing/tar.gz/refs/tags/v1.3.0","openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.94.0","openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.167.0",@@@ -1134,9 +1134,9 @@}},"node_modules/openvibe-contracts": {-- "version": "0.338.0",-- "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.338.0",-- "integrity": "sha512-75FD6IxMsXoud3NFXKDs0/D0rhJtF2D+WL8M92ArIyabkUnM/sZvw6E6L97EqwQ3O7M/kB+uwsNSxGudbil+ng==",++ "version": "0.366.0",++ "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.366.0",++ "integrity": "sha512-YAg1+OBemkaZFL3Mfdyps0EP2OLiUCyQhdhFVcPkf0mhhDmJUo3wTTAHycP8XluEiJ2iM4eI8WlB8D+u+a0+eQ==","license": "AGPL-3.0-only","dependencies": {"ajv": "^8.17.1",@@@ -25,7 +25,7 @@"express": "^4.21.2","express-rate-limit": "^7.5.0","iovalkey": "^0.4.0",-- "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.338.0",++ "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.366.0","openvibe-publishing": "https://codeload.github.com/OpenVibers/OpenVibe.Publishing/tar.gz/refs/tags/v1.3.0","openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.94.0","openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.167.0",@@@ -449,7 +449,8 @@ function createWikiService({ db, stores, outbox, config, community = null, vip =await emit(hooks.publicationEvent({product: 'wiki', type: 'page', action, id: page.id, revision: page.published_revision || 0,actor: hooks.subjectRef(actorId(actor)), document: evDoc, decision, now: now(),-- extra: { space: space.slug, slug: page.slug, visibility: eff },++ // The page's title rides along (contracts 0.366.0): the network's Feed names the page by it.++ extra: { space: space.slug, slug: page.slug, visibility: eff, ...(page.title && (action === 'published' || action === 'updated') ? { title: String(page.title).slice(0, 200) } : {}) },}));await notifyWatchers(space, page, action, page.published_revision, actor);}
@@ -444,7 +444,7 @@ implemented service. Still open: a person's review of the 42 seed pages (until t
@@ -444,7 +444,7 @@ implemented service. Still open: a person's review of the 42 seed pages (until t
Part of the [OpenVibe network](https://openvibe.network). Built in the open by [OpenVibers](https://github.com/OpenVibers).
Part of the [OpenVibe network](https://openvibe.network). Built in the open by [OpenVibers](https://github.com/OpenVibers).
<!-- versions:start -->
<!-- versions:start -->
-- openvibe-contracts: v0.338.0
+- openvibe-contracts: v0.366.0
- openvibe-sdk: v0.94.0
- openvibe-sdk: v0.94.0
- openvibe-shared: v4.167.0
- openvibe-shared: v4.167.0
- openvibe-publishing: v1.3.0
- openvibe-publishing: v1.3.0
@@ -7,7 +7,7 @@
@@ -7,7 +7,7 @@
"runtime": "node 22, express, PostgreSQL 18 (openvibe-sdk/db, async) + Valkey 9",
"runtime": "node 22, express, PostgreSQL 18 (openvibe-sdk/db, async) + Valkey 9",
"port": 4800,
"port": 4800,
"domain": "openvibe.wiki",
"domain": "openvibe.wiki",
- "contracts": "openvibe-contracts v0.338.0",
+ "contracts": "openvibe-contracts v0.366.0",
"sdk": "openvibe-sdk v0.94.0",
"sdk": "openvibe-sdk v0.94.0",
"shared": "openvibe-shared v4.167.0",
"shared": "openvibe-shared v4.167.0",
"packages": [
"packages": [
@@ -14,7 +14,7 @@
@@ -14,7 +14,7 @@
"express": "^4.21.2",
"express": "^4.21.2",
"express-rate-limit": "^7.5.0",
"express-rate-limit": "^7.5.0",
"iovalkey": "^0.4.0",
"iovalkey": "^0.4.0",
- "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.338.0",
+ "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.366.0",
"openvibe-publishing": "https://codeload.github.com/OpenVibers/OpenVibe.Publishing/tar.gz/refs/tags/v1.3.0",
"openvibe-publishing": "https://codeload.github.com/OpenVibers/OpenVibe.Publishing/tar.gz/refs/tags/v1.3.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.94.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.94.0",
"openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.167.0",
"openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.167.0",
@@ -1134,9 +1134,9 @@
@@ -1134,9 +1134,9 @@
}
}
},
},
"node_modules/openvibe-contracts": {
"node_modules/openvibe-contracts": {
- "version": "0.338.0",
- "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.338.0",
- "integrity": "sha512-75FD6IxMsXoud3NFXKDs0/D0rhJtF2D+WL8M92ArIyabkUnM/sZvw6E6L97EqwQ3O7M/kB+uwsNSxGudbil+ng==",
+ "version": "0.366.0",
+ "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.366.0",
+ "integrity": "sha512-YAg1+OBemkaZFL3Mfdyps0EP2OLiUCyQhdhFVcPkf0mhhDmJUo3wTTAHycP8XluEiJ2iM4eI8WlB8D+u+a0+eQ==",
"license": "AGPL-3.0-only",
"license": "AGPL-3.0-only",
"dependencies": {
"dependencies": {
"ajv": "^8.17.1",
"ajv": "^8.17.1",
@@ -25,7 +25,7 @@
@@ -25,7 +25,7 @@
"express": "^4.21.2",
"express": "^4.21.2",
"express-rate-limit": "^7.5.0",
"express-rate-limit": "^7.5.0",
"iovalkey": "^0.4.0",
"iovalkey": "^0.4.0",
- "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.338.0",
+ "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.366.0",
"openvibe-publishing": "https://codeload.github.com/OpenVibers/OpenVibe.Publishing/tar.gz/refs/tags/v1.3.0",
"openvibe-publishing": "https://codeload.github.com/OpenVibers/OpenVibe.Publishing/tar.gz/refs/tags/v1.3.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.94.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.94.0",
"openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.167.0",
"openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.167.0",
@@ -449,7 +449,8 @@ function createWikiService({ db, stores, outbox, config, community = null, vip =
@@ -449,7 +449,8 @@ function createWikiService({ db, stores, outbox, config, community = null, vip =
await emit(hooks.publicationEvent({
await emit(hooks.publicationEvent({
product: 'wiki', type: 'page', action, id: page.id, revision: page.published_revision || 0,
product: 'wiki', type: 'page', action, id: page.id, revision: page.published_revision || 0,
actor: hooks.subjectRef(actorId(actor)), document: evDoc, decision, now: now(),
actor: hooks.subjectRef(actorId(actor)), document: evDoc, decision, now: now(),
- extra: { space: space.slug, slug: page.slug, visibility: eff },
+ // The page's title rides along (contracts 0.366.0): the network's Feed names the page by it.
+ extra: { space: space.slug, slug: page.slug, visibility: eff, ...(page.title && (action === 'published' || action === 'updated') ? { title: String(page.title).slice(0, 200) } : {}) },
}));
}));
await notifyWatchers(space, page, action, page.published_revision, actor);
await notifyWatchers(space, page, action, page.published_revision, actor);
}
}