From 935e65221118931de9724df07d7a5719b9800d76 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Sun, 10 Sep 2023 13:43:33 +0200 Subject: [PATCH] update embeds p/all, p/subscriptions --- src/components/views/All.jsx | 560 ++++++++++++++----------- src/components/views/Board.jsx | 4 +- src/components/views/Subscriptions.jsx | 560 ++++++++++++++----------- src/components/views/Thread.jsx | 4 +- 4 files changed, 624 insertions(+), 504 deletions(-) diff --git a/src/components/views/All.jsx b/src/components/views/All.jsx index 6fd6979d..a45db8ed 100755 --- a/src/components/views/All.jsx +++ b/src/components/views/All.jsx @@ -16,6 +16,7 @@ import EditModal from '../modals/EditModal'; import EditLabel from '../EditLabel'; import ImageBanner from '../ImageBanner'; import ModerationModal from '../modals/ModerationModal'; +import Embed from '../Embed'; import OfflineIndicator from '../OfflineIndicator'; import PendingLabel from '../PendingLabel'; import Post from '../Post'; @@ -709,110 +710,106 @@ const All = () => {
{commentMediaInfo?.url ? ( -
-
- Link:  - { - commentMediaInfo?.url.length > 30 ? - commentMediaInfo?.url.slice(0, 30) + "(...)" : - commentMediaInfo?.url - } ({commentMediaInfo?.type === "iframe" ? "video" : commentMediaInfo?.type}) - {isThreadThumbnailClicked[index] && commentMediaInfo.type !== "image" ? ( - - -[ - {handleThumbnailClick(index, 'thread')}}>Close - ] - - ) : null} -
- {commentMediaInfo?.type === 'iframe' && ( -
- - {(isThreadThumbnailClicked[index] || !commentMediaInfo.thumbnail) && commentMediaInfo.embedUrl ? ( -