diff --git a/html/poketube.ejs b/html/poketube.ejs index 307456d8..80d66c07 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -1810,23 +1810,14 @@ var userID = localStorage.getItem("UserID"); if (userID) { // If user ID exists in localStorage, set the href attribute - anchor.href = `/api/set-channel-subs?ID=${userID}&channelName=<%=k.Video.Channel.Name%>&avatar=https://p.poketube.fun/<%= k.Video.Channel.Avatar[1].$t %>&channelID=<%=video?.Channel.id || k.Video.Channel.id %>`; + anchor.href = `/api/set-channel-subs?ID=${userID}&channelName=<%=k.Video.Channel.Name%>&avatar=<%- media_proxy_url %>/<%= k.Video.Channel.Avatar[1].$t %>&channelID=<%=video?.Channel.id || k.Video.Channel.id %>`; } else { - // If user ID doesn't exist in localStorage, you can handle it as needed - anchor.href = "/account-create" - // Optionally, you can set a default href or display an error message. -} - -// Now, all the selected video links should have the parameters added to their href attributes - -// Now, all the selected links should have the parameters appended + anchor.href = "/account-create" + } - - - - - - + + + <% if(IsOldWindows) { %>