forked from cory/tildefriends
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user