openvibers/openvibe.chat Commits

Add visit history metadata (#471)

OP OpenVibers committed 3 days ago · b8ef8027ce · 1 file, +1 −1

Changes

ddiff --git a/server/web/layout.js b/server/web/layout.js
iindex 2ff31c7..84c8175 100644
---- a/server/web/layout.js
++++ b/server/web/layout.js
@@@ -63,7 +63,7 @@ function navConfig(o, config, site = {}, siteLinks = null) {
service: site.service || 'chat',
apiBase: NETWORK_URL,
links: (siteLinks || site.links || links(o)).map((l) => ({ label: l.label, href: l.href, ...(l.icon ? { icon: l.icon } : {}), ...(l.more ? { more: true } : {}), active: o.active === l.key })),
-- history: { type: 'page', title: o.title || site.name || SITE_NAME },
++ history: { type: 'conversation', title: o.title || site.name || SITE_NAME, image_url: o.historyImage || null, private: !!o.private, mature: !!o.mature },
// The phone's bottom bar (Shared's app bar, appbar.js): Home, Servers, Vibe, Activity and You — one
// bar for every OpenVibe app (the plan, 2026-11-09, stage V2).
// The Activity place carries a dot while something in it is unread (Shared's appbar.js draws `dot`).