Maybe avoid increating load with the wiki app as requested accrue.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4609 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-11-05 01:07:08 +00:00
parent 61a3226e14
commit 6ef14d985d
3 changed files with 5 additions and 3 deletions

View File

@ -67,7 +67,6 @@ ssb.addEventListener('message', function(id) {
core.register('message', async function message_handler(message) {
if (message.event == 'hashChange') {
print('hash change', message.hash);
g_hash = message.hash;
await tfrpc.rpc.hash_changed(message.hash);
}
@ -112,7 +111,6 @@ async function process_message(whoami, collection, message, kind, parent) {
} else {
content.draft = false;
}
print(message.id, content);
if (content?.key) {
if (content?.tombstone) {
delete collection[content.key];