mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-01 10:22:25 +00:00
Merge pull request #1028 from PR0M3TH3AN/codex/update-thumbnail-constants-to-use-leading-slash
Ensure fallback thumbnail assets use absolute paths
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -150,7 +150,7 @@ const recordVideoViewApi = (...args) => recordVideoView(nostrClient, ...args);
|
||||
const UNSUPPORTED_BTITH_MESSAGE =
|
||||
"This magnet link is missing a compatible BitTorrent v1 info hash.";
|
||||
|
||||
const FALLBACK_THUMBNAIL_SRC = "assets/jpg/video-thumbnail-fallback.jpg";
|
||||
const FALLBACK_THUMBNAIL_SRC = "/assets/jpg/video-thumbnail-fallback.jpg";
|
||||
const VIDEO_EVENT_KIND = 30078;
|
||||
const HEX64_REGEX = /^[0-9a-f]{64}$/i;
|
||||
/**
|
||||
|
||||
@@ -4560,7 +4560,7 @@ export async function renderChannelVideosFromList({
|
||||
typeof value === "number" ? value.toLocaleString() : value
|
||||
},
|
||||
assets: {
|
||||
fallbackThumbnailSrc: "assets/jpg/video-thumbnail-fallback.jpg",
|
||||
fallbackThumbnailSrc: "/assets/jpg/video-thumbnail-fallback.jpg",
|
||||
unsupportedBtihMessage
|
||||
},
|
||||
state: { loadedThumbnails },
|
||||
|
||||
+1
-1
@@ -1223,7 +1223,7 @@ class SubscriptionsManager {
|
||||
};
|
||||
|
||||
const assets = baseView?.assets || {
|
||||
fallbackThumbnailSrc: "assets/jpg/video-thumbnail-fallback.jpg",
|
||||
fallbackThumbnailSrc: "/assets/jpg/video-thumbnail-fallback.jpg",
|
||||
unsupportedBtihMessage:
|
||||
"This magnet link is missing a compatible BitTorrent v1 info hash."
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user