openvibers/openvibe.live Commits

Drop unused pasteUrl builder from media client (#16)

OP OpenVibers committed 3 Oct 2026 · 567055b4de · 1 file, +1 −2

local checks ✓ 3/3 · CI ✓ 3/3 · review SHIP by DeepSeek harness

https://github.com/OpenVibers/OpenVibe.Live/pull/16

Changes

ddiff --git a/server/media-client.js b/server/media-client.js
iindex 02160509..abe247bd 100644
---- a/server/media-client.js
++++ b/server/media-client.js
@@@ -304,7 +304,6 @@ function generateThumbnail(kind, id, opts = {}) {
function vodPlaybackUrl(id) { return `${MEDIA_PUBLIC_URL}/v/${id}`; }
function clipUrl(id) { return `${MEDIA_PUBLIC_URL}/c/${id}`; }
--function pasteUrl(slug) { return `${MEDIA_PUBLIC_URL}/p/${encodeURIComponent(slug)}`; }
function pasteScreenshotUrl(slug) { return `${MEDIA_PUBLIC_URL}/p/${encodeURIComponent(slug)}/screenshot`; }
function pasteRawUrl(slug) { return `${MEDIA_PUBLIC_URL}/p/${encodeURIComponent(slug)}/raw`; }
function thumbUrl(id) { return `${MEDIA_PUBLIC_URL}/t/${id}`; }
@@@ -418,5 +417,5 @@ module.exports = {
uploadFile, getFileMeta, deleteFile,
uploadThumbnail, generateThumbnail,
// URL builders
-- vodPlaybackUrl, clipUrl, pasteUrl, pasteScreenshotUrl, pasteRawUrl, thumbUrl, fileUrl, screenshotUrl, publicUrl,
++ vodPlaybackUrl, clipUrl, pasteScreenshotUrl, pasteRawUrl, thumbUrl, fileUrl, screenshotUrl, publicUrl,
};