From 19e26c17593b3a53ac8ff2a1b16ab6a142db8284 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 1 Jun 2023 22:21:14 +0000 Subject: [PATCH] Support setting publicWebHosting, and kill some unused code. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4318 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- apps/ssb/tf-profile.js | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/apps/ssb/tf-profile.js b/apps/ssb/tf-profile.js index db8ff402..7d18a5d9 100644 --- a/apps/ssb/tf-profile.js +++ b/apps/ssb/tf-profile.js @@ -103,24 +103,6 @@ class TfProfileElement extends LitElement { input.click(); } - format_message(message) { - let out = { - previous: message.previous ?? null, - }; - if (message.sequence_before_author) { - out.sequence = message.sequence; - out.author = message.author; - } else { - out.author = message.author; - out.sequence = message.sequence; - } - out.timestamp = message.timestamp; - out.hash = message.hash; - out.content = JSON.parse(message.content); - out.signature = message.signature; - return out; - } - render() { let self = this; let profile = this.users[this.id] || {}; @@ -166,6 +148,10 @@ class TfProfileElement extends LitElement {
+
+ + this.editing = Object.assign({}, this.editing, {publicWebHosting: event.srcElement.checked})}> +
` : null; let image = typeof(profile.image) == 'string' ? profile.image : profile.image?.link;