From 590afa7b015bcdff0773c47e0a9c866cad3b67a8 Mon Sep 17 00:00:00 2001
From: Cory McWilliams
Date: Wed, 26 Jun 2024 19:27:15 -0400
Subject: [PATCH] Fix content warnings.
---
apps/ssb.json | 2 +-
apps/ssb/tf-compose.js | 10 ++--------
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/apps/ssb.json b/apps/ssb.json
index f7e8024c..68dd04e4 100644
--- a/apps/ssb.json
+++ b/apps/ssb.json
@@ -1,5 +1,5 @@
{
"type": "tildefriends-app",
"emoji": "🐌",
- "previous": "&z0N6jlqflRd4+grj16K/IdllNVLQrPLbr7aKVs/21mE=.sha256"
+ "previous": "&4pRR+8wIBK6lGH9oJPmGFA9I5wvICvSq2G+XRHYqbBQ=.sha256"
}
diff --git a/apps/ssb/tf-compose.js b/apps/ssb/tf-compose.js
index bda9dc84..56d688c9 100644
--- a/apps/ssb/tf-compose.js
+++ b/apps/ssb/tf-compose.js
@@ -76,15 +76,9 @@ class TfComposeElement extends LitElement {
let preview = this.renderRoot.getElementById('preview');
preview.innerHTML = this.process_text(edit.innerText);
let content_warning = this.renderRoot.getElementById('content_warning');
- let content_warning_preview = this.renderRoot.getElementById(
- 'content_warning_preview'
- );
- if (content_warning && content_warning_preview) {
- content_warning_preview.innerText = content_warning.value;
- }
let draft = this.get_draft();
draft.text = edit.innerText;
- draft.content_warning = content_warning?.innerText;
+ draft.content_warning = content_warning?.value;
setTimeout(() => this.notify(draft), 0);
}
@@ -459,7 +453,7 @@ class TfComposeElement extends LitElement {
self.set_content_warning(undefined)} checked="checked">
-
+
`;
} else {