From f0984b19f27eb9320c42e89fcde353cf45a296df Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Wed, 6 Dec 2023 17:48:44 +0000 Subject: [PATCH] Encrypt wiki docs to all editors.. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4661 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/wiki.json | 2 +- apps/wiki/tf-wiki-doc.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/wiki.json b/apps/wiki.json index 781d2e6d..727fcf03 100644 --- a/apps/wiki.json +++ b/apps/wiki.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "📝", - "previous": "&2z1RieeV0Kxp9DoT1Jor5tKImA3n4Sh4Dar0+BZpQxY=.sha256" + "previous": "&kjbXfJac0FNZnkr+TlnKjbJOQ/Ktw5C/TWjXu/i6IWs=.sha256" } \ No newline at end of file diff --git a/apps/wiki/tf-wiki-doc.js b/apps/wiki/tf-wiki-doc.js index 124d0198..a944b07b 100644 --- a/apps/wiki/tf-wiki-doc.js +++ b/apps/wiki/tf-wiki-doc.js @@ -6,7 +6,7 @@ class TfWikiDocElement extends LitElement { static get properties() { return { whoami: {type: String}, - wiki: {type: String}, + wiki: {type: Object}, value: {type: Object}, blob: {type: String}, blob_original: {type: String}, @@ -67,7 +67,7 @@ class TfWikiDocElement extends LitElement { async append_message(draft) { let blob = this.blob; if (draft || this.value?.private) { - blob = await tfrpc.rpc.encrypt(this.whoami, this.value.editors, blob); + blob = await tfrpc.rpc.encrypt(this.whoami, this.wiki.editors, blob); } let id = await tfrpc.rpc.store_blob(blob); let message = { @@ -179,7 +179,7 @@ class TfWikiDocElement extends LitElement { -
document is private
+
🔒 document is private