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