Made it possible to add wiki editors.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4628 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-11-11 13:44:20 +00:00
parent 1484a87cad
commit 5b2ace80d4
3 changed files with 37 additions and 3 deletions

View File

@ -32,6 +32,7 @@ tfrpc.register(async function following(ids, depth) {
});
tfrpc.register(async function appendMessage(id, message) {
print('APPENDING', message);
return ssb.appendMessageWithIdentity(id, message);
});
@ -123,6 +124,9 @@ async function process_message(whoami, collection, message, kind, parent) {
}
} else {
collection[message.id] = Object.assign(content, {id: message.id});
if (!collection[message.id].editors) {
collection[message.id].editors = [message.author];
}
}
return true;
}