From 71670ebfbf2f6d45a8b6751704728477bf76fd44 Mon Sep 17 00:00:00 2001 From: Bastard Operator Date: Fri, 25 Dec 2020 18:08:21 +0100 Subject: [PATCH] Implemented message sending via a custom text box to the highlighted status Added event to recieve notifications so we can update the chat feed on this event --- src/routes/_api/statuses.js | 3 ++ src/routes/_layout.html | 2 +- .../_store/observers/notificationObservers.js | 1 + src/scss/themes/ozark.scss | 4 ++ static/fedilove-no-react.js | 47 +++++++++++++++++++ 5 files changed, 56 insertions(+), 1 deletion(-) diff --git a/src/routes/_api/statuses.js b/src/routes/_api/statuses.js index 5edf0a72..c17527d6 100644 --- a/src/routes/_api/statuses.js +++ b/src/routes/_api/statuses.js @@ -5,6 +5,9 @@ export async function postStatus (instanceName, accessToken, text, inReplyToId, sensitive, spoilerText, visibility, poll) { const url = `${basename(instanceName)}/api/v1/statuses` + // hack to override toots text :) + text = $('textarea#the-compose-box-input-'+inReplyToId).val(); + const body = { status: text, in_reply_to_id: inReplyToId, diff --git a/src/routes/_layout.html b/src/routes/_layout.html index be999f16..3cbb525b 100644 --- a/src/routes/_layout.html +++ b/src/routes/_layout.html @@ -7,7 +7,7 @@ -