diff --git a/apps/cory/index.json b/apps/cory/index.json index cc832a2e..3908d086 100644 --- a/apps/cory/index.json +++ b/apps/cory/index.json @@ -1 +1 @@ -{"type":"tildefriends-app","files":{"app.js":"&oCXEt7h7lEIL8BXyVDv3Skp44ApY+rExcNKx9//Dj80=.sha256","index.html":"&7/hwWTsmdkNkTLT3gUwaZ+B+Y5EjHGHyE2+zWkHnMac=.sha256","vue-material.js":"&K5cdLqXYCENPak/TCINHQhyJhpS4G9DlZHGwoh/LF2g=.sha256"}} \ No newline at end of file +{"type":"tildefriends-app","files":{"app.js":"&ovJdMIXT/ocLxZ1rO1N03SpZr3w3RFKCFXl+isnXcx4=.sha256","index.html":"&TFtniuUIVO7XeWCgwmqPAmuBzpGX6slxJQcPMEr+860=.sha256","vue-material.js":"&K5cdLqXYCENPak/TCINHQhyJhpS4G9DlZHGwoh/LF2g=.sha256"}} \ No newline at end of file diff --git a/apps/cory/index/app.js b/apps/cory/index/app.js index eb45dc4d..342dd734 100644 --- a/apps/cory/index/app.js +++ b/apps/cory/index/app.js @@ -150,7 +150,7 @@ async function visiblePubs(db, id) { async function getAbout(db, id) { var o = await db.get(id + ":about"); - const k_version = 3; + const k_version = 4; var f = o ? JSON.parse(o) : o; if (!f || f.version != k_version) { f = {about: {}, sequence: 0, version: k_version}; @@ -278,7 +278,7 @@ async function getPosts(db, ids) { var posts = []; if (ids.length) { await ssb.sqlStream( - "SELECT * FROM messages WHERE id IN (" + ids.map(x => "?").join(", ") + ")", + "SELECT rowid, * FROM messages WHERE id IN (" + ids.map(x => "?").join(", ") + ")", ids, async function(row) { try { @@ -313,7 +313,6 @@ async function refresh() { app.postMessage({broadcasts: await ssb.getBroadcasts()}), app.postMessage({connections: await ssb.connections()}), followingDeep(db, [whoami], 2).then(function(f) { - print(JSON.stringify(f)); getRecentPostIds(db, whoami, [].concat([whoami], f), k_posts_max).then(async function(ids) { return getPosts(db, ids); }).then(async function(posts) { diff --git a/apps/cory/index/index.html b/apps/cory/index/index.html index 6cc6a17d..725ed116 100644 --- a/apps/cory/index/index.html +++ b/apps/cory/index/index.html @@ -161,9 +161,7 @@