From f7a31aa3dee1f37cb90a22303b6d45bec0033a3f Mon Sep 17 00:00:00 2001 From: Fijxu Date: Sun, 21 Dec 2025 00:50:37 -0300 Subject: [PATCH 1/3] fix lint --- src/invidious/routes/companion.cr | 1 - 1 file changed, 1 deletion(-) diff --git a/src/invidious/routes/companion.cr b/src/invidious/routes/companion.cr index 949b213f..811393ab 100644 --- a/src/invidious/routes/companion.cr +++ b/src/invidious/routes/companion.cr @@ -33,7 +33,6 @@ module Invidious::Routes::Companion end end - def self.options_companion(env) url = env.request.path if env.request.query From 9603f5151d76768ff704ceeac7a2e8ae687121be Mon Sep 17 00:00:00 2001 From: Fijxu Date: Mon, 22 Dec 2025 07:19:13 -0300 Subject: [PATCH 2/3] Downgrade Crystal to 1.16.3 in OCI (#5577) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * downgrade to 1.16.3 * Downgrade Alpine base image from 3.23 to 3.22 --------- Co-authored-by: Émilien (perso) <4016501+unixfox@users.noreply.github.com> --- docker/Dockerfile | 2 +- docker/Dockerfile.arm64 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 383a60ec..e2d30364 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,7 +2,7 @@ ARG OPENSSL_VERSION='3.5.2' ARG OPENSSL_SHA256='c53a47e5e441c930c3928cf7bf6fb00e5d129b630e0aa873b08258656e7345ec' -FROM crystallang/crystal:1.18.2-alpine AS dependabot-crystal +FROM crystallang/crystal:1.16.3-alpine AS dependabot-crystal # We compile openssl ourselves due to a memory leak in how crystal interacts # with openssl diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64 index 8508d4fa..ce691c91 100644 --- a/docker/Dockerfile.arm64 +++ b/docker/Dockerfile.arm64 @@ -2,7 +2,7 @@ ARG OPENSSL_VERSION='3.5.2' ARG OPENSSL_SHA256='c53a47e5e441c930c3928cf7bf6fb00e5d129b630e0aa873b08258656e7345ec' -FROM alpine:3.23 AS dependabot-alpine +FROM alpine:3.22 AS dependabot-alpine # We compile openssl ourselves due to a memory leak in how crystal interacts # with openssl @@ -21,7 +21,7 @@ RUN tar -xzvf openssl-${OPENSSL_VERSION}.tar.gz RUN cd openssl-${OPENSSL_VERSION} && ./Configure --openssldir=/etc/ssl && make -j$(nproc) FROM dependabot-alpine AS builder -RUN apk add --no-cache 'crystal=1.18.2-r0' shards \ +RUN apk add --no-cache 'crystal=1.16.3-r0' shards \ sqlite-static yaml-static yaml-dev \ pcre2-static gc-static \ libxml2-static zlib-static \ @@ -63,7 +63,7 @@ RUN --mount=type=cache,target=/root/.cache/crystal if [[ "${release}" == 1 ]] ; --link-flags "-lxml2 -llzma"; \ fi -FROM alpine:3.23 +FROM alpine:3.22 RUN apk add --no-cache rsvg-convert ttf-opensans tini tzdata WORKDIR /invidious RUN addgroup -g 1000 -S invidious && \ From 5f84a5b353132cec17bd14b0796dc11a3d0eb36d Mon Sep 17 00:00:00 2001 From: Fijxu Date: Mon, 22 Dec 2025 13:14:59 -0300 Subject: [PATCH 3/3] Generate companion check id one time and add missing companion check id on captions (#5575) * Only generate companion check id one time * Add missing check id for companion captions --- src/invidious/views/components/player.ecr | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index 85fa4373..26ba65f7 100644 --- a/src/invidious/views/components/player.ecr +++ b/src/invidious/views/components/player.ecr @@ -1,3 +1,6 @@ +<% + invidious_companion_check_id = invidious_companion_encrypt(video.id) if invidious_companion +%>