From 005256ae8cfa1ccd5093a7ef43c5c797c0f9348f Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sun, 25 Dec 2022 21:11:11 +0000 Subject: [PATCH] javascript: glitch: start rendering quotes --- .../glitch/components/status_content.js | 18 ++++++++++++++++++ .../glitch/styles/components/status.scss | 1 + 2 files changed, 19 insertions(+) diff --git a/app/javascript/flavours/glitch/components/status_content.js b/app/javascript/flavours/glitch/components/status_content.js index c618cedcab..ea5ac2b488 100644 --- a/app/javascript/flavours/glitch/components/status_content.js +++ b/app/javascript/flavours/glitch/components/status_content.js @@ -275,6 +275,21 @@ export default class StatusContent extends React.PureComponent { 'status__content--with-spoiler': status.get('spoiler_text').length > 0, }); + let quote = ''; + + if (status.get('quote', null) !== null) { + let quoteStatus = status.get('quote'); + let quoteStatusContent = { __html: quoteStatus.get('contentHtml') }; + + quote = ( +
+
+
+
+
+ ); + } + if (status.get('spoiler_text').length > 0) { let mentionsPlaceholder = ''; @@ -340,6 +355,7 @@ export default class StatusContent extends React.PureComponent { {mentionsPlaceholder}
+ {quote}
+ {quote}
+ {quote}