forked from cory/tildefriends
Show new posts at the top of the list.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3704 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@@ -291,6 +291,14 @@ async function refresh() {
|
||||
]);
|
||||
}
|
||||
|
||||
ssb.addEventListener('message', async function(id) {
|
||||
var db = await database("ssb");
|
||||
var posts = await getPosts(db, [id]);
|
||||
for (let post of posts) {
|
||||
await app.postMessage({message: post});
|
||||
}
|
||||
});
|
||||
|
||||
core.register('message', async function(m) {
|
||||
if (m.message == 'ready') {
|
||||
await ready();
|
||||
|
Reference in New Issue
Block a user