forked from cory/tildefriends
		
	Run prettier.
This commit is contained in:
		| @@ -26,14 +26,15 @@ async function fetch_info(apps) { | ||||
| async function fetch_shared_apps() { | ||||
| 	let messages = {}; | ||||
|  | ||||
| 	await ssb.sqlAsync(` | ||||
| 	await ssb.sqlAsync( | ||||
| 		` | ||||
| 				SELECT messages.* | ||||
| 				FROM messages_fts('"application/tildefriends"') | ||||
| 				JOIN messages ON messages.rowid = messages_fts.rowid | ||||
| 				ORDER BY timestamp | ||||
| 		`, | ||||
| 		[], | ||||
| 		function(row) { | ||||
| 		function (row) { | ||||
| 			let content = JSON.parse(row.content); | ||||
| 			for (let mention of content.mentions) { | ||||
| 				if (mention?.type === 'application/tildefriends') { | ||||
| @@ -44,10 +45,13 @@ async function fetch_shared_apps() { | ||||
| 					}; | ||||
| 				} | ||||
| 			} | ||||
| 		}); | ||||
| 		} | ||||
| 	); | ||||
|  | ||||
| 	let result = {}; | ||||
| 	for (let app of Object.values(messages).sort((x, y) => y.message.timestamp - x.message.timestamp)) { | ||||
| 	for (let app of Object.values(messages).sort( | ||||
| 		(x, y) => y.message.timestamp - x.message.timestamp | ||||
| 	)) { | ||||
| 		let app_object = JSON.parse(utf8Decode(await ssb.blobGet(app.blob))); | ||||
| 		if (app_object) { | ||||
| 			app_object.blob_id = app.blob; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user