From cb1c8845033b7f75fb8c37c895a96604af7512d8 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Mon, 19 Jan 2026 04:46:40 +0100 Subject: [PATCH] Fixed NATS URL composition. --- components/campaigns/campaign.vue | 1 + components/filters/toggle.vue | 50 +++++++++++++++++++++++++++++++ components/scenes/tile.vue | 8 ++--- pages/entities/+Page.vue | 1 + src/scenes.js | 20 ++++++++----- static | 2 +- 6 files changed, 70 insertions(+), 12 deletions(-) create mode 100644 components/filters/toggle.vue diff --git a/components/campaigns/campaign.vue b/components/campaigns/campaign.vue index 5cb8987..8b2f76d 100644 --- a/components/campaigns/campaign.vue +++ b/components/campaigns/campaign.vue @@ -60,6 +60,7 @@ const bannerSrc = (() => { height: 100%; display: flex; justify-content: center; + /* align-items: center; */ } .frame { diff --git a/components/filters/toggle.vue b/components/filters/toggle.vue new file mode 100644 index 0000000..4b5f95f --- /dev/null +++ b/components/filters/toggle.vue @@ -0,0 +1,50 @@ + + + + + diff --git a/components/scenes/tile.vue b/components/scenes/tile.vue index 2995aaa..1b3de15 100644 --- a/components/scenes/tile.vue +++ b/components/scenes/tile.vue @@ -213,7 +213,7 @@ const favorited = ref(props.scene.stashes.some((sceneStash) => sceneStash.id === .title { display: block; margin-top: .5rem; - margin-bottom: .4rem; + margin-bottom: .3rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; @@ -239,7 +239,7 @@ const favorited = ref(props.scene.stashes.some((sceneStash) => sceneStash.id === .actors { height: 1.15rem; - margin-bottom: .1rem; + margin-bottom: .15rem; overflow: hidden; white-space: pre-wrap; } @@ -302,12 +302,12 @@ const favorited = ref(props.scene.stashes.some((sceneStash) => sceneStash.id === } .row { - margin: 0 .5rem .5rem .5rem; + margin: 0 .5rem .45rem .5rem; } .title { margin-top: .6rem; - margin-bottom: .6rem; + margin-bottom: .5rem; } } } diff --git a/pages/entities/+Page.vue b/pages/entities/+Page.vue index 4bbae30..4101d51 100644 --- a/pages/entities/+Page.vue +++ b/pages/entities/+Page.vue @@ -101,6 +101,7 @@ const popularNetworks = [ 'private', 'realitykings', 'rickysroom', + 'score', 'teamskeet', 'kellymadison', 'vixen', diff --git a/src/scenes.js b/src/scenes.js index b10ac44..25defc6 100644 --- a/src/scenes.js +++ b/src/scenes.js @@ -42,16 +42,22 @@ function getAffiliateUrl(scene) { return null; } - if (!scene.affiliate?.parameters) { - return scene.url; + if (scene.affiliate.url?.includes('/track')) { // nats redirect + const { pathname, search } = new URL(watchUrl); + + return `${scene.affiliate.url}${pathname}${search}`; } - const newParams = new URLSearchParams({ - ...Object.fromEntries(new URL(watchUrl).searchParams), - ...Object.fromEntries(new URLSearchParams(scene.affiliate.parameters)), - }); + if (scene.affiliate?.parameters) { // TODO: this is probably not getting tracked... + const newParams = new URLSearchParams({ + ...Object.fromEntries(new URL(watchUrl).searchParams), + ...Object.fromEntries(new URLSearchParams(scene.affiliate.parameters)), + }); - return `${watchUrl}?${newParams.toString()}`; + return `${watchUrl}?${newParams.toString()}`; + } + + return watchUrl; } function curateScene(rawScene, assets) { diff --git a/static b/static index c05345e..3df1185 160000 --- a/static +++ b/static @@ -1 +1 @@ -Subproject commit c05345e3c73cef25e2bb03931ffded6e7cfbe743 +Subproject commit 3df11850ec6038c0919f6eaedb83bc8312fa8e07