forked from cory/tildefriends
		
	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
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
| { | ||||
|   "type": "tildefriends-app", | ||||
|   "emoji": "📝", | ||||
|   "previous": "&YeaTOrnB4mPU2htPCtcLH9Ys1rXyyulEroR2gkU7zKw=.sha256" | ||||
|   "previous": "&dWRvF06sP9/nrZmGjF+px+KFPEjT6bg2/u7vENWvUyM=.sha256" | ||||
| } | ||||
| @@ -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; | ||||
| 			} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user