openvibers/openvibe.community Commits
Add visit history metadata (#346)
Changes
@@@ -261,7 +261,7 @@ function forumTopicPage({ space, thread, posts, page, pages, perPage = 50, viewepublished: thread.created_at || undefined,modified: (opening && opening.updated_at) || undefined,active: 'spaces',-- historyType: 'page',++ historyType: 'thread',historyTitle: thread.title,footerVariant: 'compact',styles: ['kit.css', ...(attachmentsEnabled ? ['ov-upload.css'] : [])],@@@ -326,7 +326,7 @@ function threadPage({ space, thread, posts, page, pages, perPage = 50, viewer, upublished: thread.created_at || undefined,modified: (opening && opening.updated_at) || undefined,active: 'spaces',-- historyType: 'page',++ historyType: 'thread',historyTitle: thread.title,footerVariant: 'compact',styles: ['kit.css', ...(attachmentsEnabled ? ['ov-upload.css'] : [])],@@@ -72,7 +72,7 @@ function navbarInit(opts) {appBar: true, // phones: the four places as the bottom tab bar (Shared 4.20)search: { page: '/search', label: 'OpenVibe.Community' }, // the magnifier offers this site's own search firstmenu: { after: [{ label: 'My pastes', href: '/my', icon: 'fa-paste' }] },-- history: { type: opts.historyType || 'page', title: opts.historyTitle || opts.title },++ history: { type: opts.historyType || 'page', title: opts.historyTitle || opts.title, image_url: opts.historyImage || null, private: !!opts.historyPrivate, mature: !!opts.historyMature },silentLogin: `${config.baseUrl}/auth/login?silent=1&next={url}`,sessionUrl: '/auth/me',loginUrl: '/auth/login?next={path}', // filled from the current page (boost moves between pages)
@@ -261,7 +261,7 @@ function forumTopicPage({ space, thread, posts, page, pages, perPage = 50, viewe
@@ -261,7 +261,7 @@ function forumTopicPage({ space, thread, posts, page, pages, perPage = 50, viewe
published: thread.created_at || undefined,
published: thread.created_at || undefined,
modified: (opening && opening.updated_at) || undefined,
modified: (opening && opening.updated_at) || undefined,
active: 'spaces',
active: 'spaces',
- historyType: 'page',
+ historyType: 'thread',
historyTitle: thread.title,
historyTitle: thread.title,
footerVariant: 'compact',
footerVariant: 'compact',
styles: ['kit.css', ...(attachmentsEnabled ? ['ov-upload.css'] : [])],
styles: ['kit.css', ...(attachmentsEnabled ? ['ov-upload.css'] : [])],
@@ -326,7 +326,7 @@ function threadPage({ space, thread, posts, page, pages, perPage = 50, viewer, u
@@ -326,7 +326,7 @@ function threadPage({ space, thread, posts, page, pages, perPage = 50, viewer, u
published: thread.created_at || undefined,
published: thread.created_at || undefined,
modified: (opening && opening.updated_at) || undefined,
modified: (opening && opening.updated_at) || undefined,
active: 'spaces',
active: 'spaces',
- historyType: 'page',
+ historyType: 'thread',
historyTitle: thread.title,
historyTitle: thread.title,
footerVariant: 'compact',
footerVariant: 'compact',
styles: ['kit.css', ...(attachmentsEnabled ? ['ov-upload.css'] : [])],
styles: ['kit.css', ...(attachmentsEnabled ? ['ov-upload.css'] : [])],
@@ -72,7 +72,7 @@ function navbarInit(opts) {
@@ -72,7 +72,7 @@ function navbarInit(opts) {
appBar: true, // phones: the four places as the bottom tab bar (Shared 4.20)
appBar: true, // phones: the four places as the bottom tab bar (Shared 4.20)
search: { page: '/search', label: 'OpenVibe.Community' }, // the magnifier offers this site's own search first
search: { page: '/search', label: 'OpenVibe.Community' }, // the magnifier offers this site's own search first
menu: { after: [{ label: 'My pastes', href: '/my', icon: 'fa-paste' }] },
menu: { after: [{ label: 'My pastes', href: '/my', icon: 'fa-paste' }] },
- history: { type: opts.historyType || 'page', title: opts.historyTitle || opts.title },
+ history: { type: opts.historyType || 'page', title: opts.historyTitle || opts.title, image_url: opts.historyImage || null, private: !!opts.historyPrivate, mature: !!opts.historyMature },
silentLogin: `${config.baseUrl}/auth/login?silent=1&next={url}`,
silentLogin: `${config.baseUrl}/auth/login?silent=1&next={url}`,
sessionUrl: '/auth/me',
sessionUrl: '/auth/me',
loginUrl: '/auth/login?next={path}', // filled from the current page (boost moves between pages)
loginUrl: '/auth/login?next={path}', // filled from the current page (boost moves between pages)