fix this finally

This commit is contained in:
ashley 2025-09-04 14:37:12 +02:00
parent 50f8d288a4
commit 459f17396b

View File

@ -1668,7 +1668,7 @@ 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=<%=cinv.author%>&avatar=https://p.poketube.fun/<%- j.Channel?.Metadata.Avatars.Thumbnail?.$t %>&channelID=<%= ID %>`;
anchor.href = `/api/set-channel-subs?ID=${userID}&channelName=<%=cinv.author%>&avatar=<%- media_proxy_url %>/proxy?url=<%- cinv.authorThumbnails[5].url %>&channelID=<%= ID %>`;
} else {
// If user ID doesn't exist in localStorage, you can handle it as needed
anchor.href = "/account-create"