diff --git a/apps/ssb.json b/apps/ssb.json index 1f350390..72fd8ab8 100644 --- a/apps/ssb.json +++ b/apps/ssb.json @@ -1,5 +1,5 @@ { "type": "tildefriends-app", "emoji": "🦀", - "previous": "&t4hk+Y6NB+TftzDLhJ9gUKLPU5YcFYvTEbJuTT2qPCQ=.sha256" + "previous": "&QdW1N8dMttww41AFP9qNRor9P9Rsiamnl/YQSJiviQE=.sha256" } diff --git a/apps/ssb/tf-message.js b/apps/ssb/tf-message.js index 4c968597..704439f8 100644 --- a/apps/ssb/tf-message.js +++ b/apps/ssb/tf-message.js @@ -196,26 +196,6 @@ class TfMessageElement extends LitElement { ); } - flag(event) { - let reason = prompt( - 'What is the reason for reporting this content (spam, nsfw, ...)?', - 'offensive' - ); - if (reason !== undefined) { - tfrpc.rpc - .appendMessage(this.whoami, { - type: 'flag', - flag: { - link: this.message.id, - reason: reason.length ? reason : undefined, - }, - }) - .catch(function (error) { - alert(error?.message); - }); - } - } - show_image(link) { let div = document.createElement('div'); div.style.left = 0; @@ -519,14 +499,11 @@ class TfMessageElement extends LitElement { ` : undefined} - ${formats.map( ([format, name]) => html` @@ -988,11 +965,7 @@ class TfMessageElement extends LitElement { style="cursor: pointer" @click=${(x) => this.toggle_expanded(':cw')} > -
- ${this.message.flags - ? `Caution: This message has been flagged ${this.message.flags.length} time${this.message.flags.length == 1 ? '' : 's'}.` - : content.contentWarning} -
+${content.contentWarning}
${this.is_expanded(':cw') ? 'Show less' : 'Show more'}
@@ -1003,12 +976,11 @@ class TfMessageElement extends LitElement {