From 1484a87cada3b8ec52659db92339e346ed4123a5 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sat, 11 Nov 2023 02:22:53 +0000 Subject: [PATCH] Fix wiki following, and shows wiki-docs from editors of the wiki. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4627 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/wiki.json | 2 +- apps/wiki/tf-collections-app.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/wiki.json b/apps/wiki.json index ee815625..1328130d 100644 --- a/apps/wiki.json +++ b/apps/wiki.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "📝", - "previous": "&YeaTOrnB4mPU2htPCtcLH9Ys1rXyyulEroR2gkU7zKw=.sha256" + "previous": "&dWRvF06sP9/nrZmGjF+px+KFPEjT6bg2/u7vENWvUyM=.sha256" } \ No newline at end of file diff --git a/apps/wiki/tf-collections-app.js b/apps/wiki/tf-collections-app.js index 5a600a1b..90183328 100644 --- a/apps/wiki/tf-collections-app.js +++ b/apps/wiki/tf-collections-app.js @@ -45,8 +45,7 @@ class TfCollectionsAppElement extends LitElement { while (true) { console.log('read_wikis', this.whoami); - let following = Object.keys(await tfrpc.rpc.following([this.whoami]), 2); - console.log('following', following); + let following = Object.keys(await tfrpc.rpc.following([this.whoami], 2)).sort(); [max_rowid, wikis] = await tfrpc.rpc.collection(following, 'wiki', undefined, max_rowid, wikis, false); console.log('read ->', wikis); if (this.whoami !== start_whoami) { @@ -67,7 +66,7 @@ class TfCollectionsAppElement extends LitElement { let wiki_docs; while (true) { - [max_rowid, wiki_docs] = await tfrpc.rpc.collection(this.owner_ids, 'wiki-doc', this.wiki?.id, max_rowid, wiki_docs); + [max_rowid, wiki_docs] = await tfrpc.rpc.collection(this.wiki?.editors, 'wiki-doc', this.wiki?.id, max_rowid, wiki_docs); if (this.wiki?.id !== start_id) { break; }