mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 15:43:20 +00:00
compute social threads after the loop
This commit is contained in:
parent
525e98a56a
commit
13eba08177
@ -458,6 +458,7 @@ export async function* Database_Update(
|
||||
changes_events.push(e);
|
||||
}
|
||||
|
||||
let hasKind_1 = false;
|
||||
for (let e of changes_events) {
|
||||
model.allUsersInfo = getAllUsersInformation(database, ctx);
|
||||
const t = getTags(e).lamport_timestamp;
|
||||
@ -542,9 +543,12 @@ export async function* Database_Update(
|
||||
}
|
||||
}
|
||||
} else if (e.kind == NostrKind.TEXT_NOTE) {
|
||||
model.social.threads = getSocialPosts(database, model.allUsersInfo);
|
||||
hasKind_1 = true;
|
||||
}
|
||||
}
|
||||
if (hasKind_1) {
|
||||
model.social.threads = getSocialPosts(database, model.allUsersInfo);
|
||||
}
|
||||
yield model;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user