openvibers/openvibe.search Commits

Search's front page leaves clips off "New on the network": their index order brought back clips from March (#78)

OP OpenVibers committed 22 days ago · 20bb7ebe56 · 2 files, +3 −3

Changes

ddiff --git a/README.md b/README.md
iindex 1736c04..4bbe78f 100644
---- a/README.md
++++ b/README.md
@@@ -88,7 +88,7 @@ route index at `/`.
The plain front page is the network's search front page (`server/web/page.js`, `server/web/front-data.js`):
example searches, the index in numbers (public listed documents, sites sending, kinds, added or updated
--this week), shelves of the newest public documents of each kind (streams, clips, blog posts, jobs,
++this week), shelves of the newest public documents of each kind (streams, blog posts, jobs,
hosting plans, coupons, forum threads, help articles, places, rental cities, quests, tools; read with
the same searcher and anonymous viewer as `GET /api/v1/search?owner=&type=`, so nothing private or draft
can appear; community pastes, whose titles an AI writes from a picture, and placeholder titles are not
ddiff --git a/server/web/front-data.js b/server/web/front-data.js
iindex 4a56b60..aeb3279 100644
---- a/server/web/front-data.js
++++ b/server/web/front-data.js
@@@ -15,10 +15,10 @@ const { ANONYMOUS } = require('../auth');
const WEEK_MS = 7 * 24 * 60 * 60 * 1000;
// The shelves, in the order the page shows them: a kind of document people browse, its heading and how many to show.
// Community pastes are left off on purpose: their titles are written by an AI from a picture, and this page is not the
--// place to repeat them (they stay searchable).
++// place to repeat them (they stay searchable). Clips are left off too: their index order brings back months-old clips,
++// which a shelf called "New on the network" must not show.
const SHELVES = [
['live', 'vod', 'Recent streams'],
-- ['live', 'clip', 'Clips'],
['blog', 'post', 'From the blogs'],
['work', 'job', 'New jobs'],
['host', 'plan', 'Hosting plans'],