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", |   "type": "tildefriends-app", | ||||||
|   "emoji": "📝", |   "emoji": "📝", | ||||||
|   "previous": "&YeaTOrnB4mPU2htPCtcLH9Ys1rXyyulEroR2gkU7zKw=.sha256" |   "previous": "&dWRvF06sP9/nrZmGjF+px+KFPEjT6bg2/u7vENWvUyM=.sha256" | ||||||
| } | } | ||||||
| @@ -45,8 +45,7 @@ class TfCollectionsAppElement extends LitElement { | |||||||
| 		while (true) | 		while (true) | ||||||
| 		{ | 		{ | ||||||
| 			console.log('read_wikis', this.whoami); | 			console.log('read_wikis', this.whoami); | ||||||
| 			let following = Object.keys(await tfrpc.rpc.following([this.whoami]), 2); | 			let following = Object.keys(await tfrpc.rpc.following([this.whoami], 2)).sort(); | ||||||
| 			console.log('following', following); |  | ||||||
| 			[max_rowid, wikis] = await tfrpc.rpc.collection(following, 'wiki', undefined, max_rowid, wikis, false); | 			[max_rowid, wikis] = await tfrpc.rpc.collection(following, 'wiki', undefined, max_rowid, wikis, false); | ||||||
| 			console.log('read ->', wikis); | 			console.log('read ->', wikis); | ||||||
| 			if (this.whoami !== start_whoami) { | 			if (this.whoami !== start_whoami) { | ||||||
| @@ -67,7 +66,7 @@ class TfCollectionsAppElement extends LitElement { | |||||||
| 		let wiki_docs; | 		let wiki_docs; | ||||||
| 		while (true) | 		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) { | 			if (this.wiki?.id !== start_id) { | ||||||
| 				break; | 				break; | ||||||
| 			} | 			} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user