diff --git a/components/upload-modal.html b/components/upload-modal.html
index 368a420..fa01051 100644
--- a/components/upload-modal.html
+++ b/components/upload-modal.html
@@ -105,7 +105,7 @@
class="mt-1 block w-full rounded-md border-gray-700 bg-gray-800 text-gray-100 focus:border-blue-500 focus:ring-blue-500"
>
-
+
`;
return;
}
-
+
// 2) Sort newest first
videos.sort((a, b) => b.created_at - a.created_at);
-
+
const fullAllEventsArray = Array.from(nostrClient.allEvents.values());
const fragment = document.createDocumentFragment();
const authorSet = new Set();
-
+
// 3) Build each card
videos.forEach((video, index) => {
if (!video.id || !video.title) {
console.error("Video missing ID/title:", video);
return;
}
-
+
authorSet.add(video.pubkey);
-
+
const nevent = window.NostrTools.nip19.neventEncode({ id: video.id });
- const shareUrl = `${window.location.pathname}?v=${encodeURIComponent(nevent)}`;
+ const shareUrl = `${window.location.pathname}?v=${encodeURIComponent(
+ nevent
+ )}`;
const canEdit = video.pubkey === this.pubkey;
const highlightClass =
video.isPrivate && canEdit
? "border-2 border-yellow-500"
: "border-none";
const timeAgo = this.formatTimeAgo(video.created_at);
-
+
// Check if there's an older version
let hasOlder = false;
if (canEdit && video.videoRootId) {
hasOlder = this.hasOlderVersion(video, fullAllEventsArray);
}
-
+
const revertButton = hasOlder
? `