From d6eb3137d332dad975ab78dc742fc7e767fa5baa Mon Sep 17 00:00:00 2001
From: grimsi <9295182+grimsi@users.noreply.github.com>
Date: Thu, 2 Oct 2025 10:33:01 +0200
Subject: [PATCH 1/5] Fix check of request limit of limit is set to 0
(unlimited)
---
.../main/kotlin/org/gameyfin/app/requests/GameRequestService.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/src/main/kotlin/org/gameyfin/app/requests/GameRequestService.kt b/app/src/main/kotlin/org/gameyfin/app/requests/GameRequestService.kt
index 3f81d65..5676e3f 100644
--- a/app/src/main/kotlin/org/gameyfin/app/requests/GameRequestService.kt
+++ b/app/src/main/kotlin/org/gameyfin/app/requests/GameRequestService.kt
@@ -102,7 +102,7 @@ class GameRequestService(
listOf(GameRequestStatus.PENDING)
)
val maxRequestsPerUser = config.get(ConfigProperties.Requests.Games.MaxOpenRequestsPerUser) ?: 0
- if (maxRequestsPerUser == 0 || (auth?.isAdmin() != true && pendingRequestsForUser.size >= maxRequestsPerUser)) {
+ if (maxRequestsPerUser != 0 && auth?.isAdmin() != true && pendingRequestsForUser.size >= maxRequestsPerUser) {
throw EndpointException("You have reached the maximum number of pending requests (${maxRequestsPerUser})")
}
From 7d5cdba1b05caf9d3c8406776b3474023c0e0ae4 Mon Sep 17 00:00:00 2001
From: grimsi <9295182+grimsi@users.noreply.github.com>
Date: Thu, 2 Oct 2025 10:34:48 +0200
Subject: [PATCH 2/5] Update version to 2.1.1-preview
---
app/package.json | 4 ++--
build.gradle.kts | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/package.json b/app/package.json
index 80158c5..fde9357 100644
--- a/app/package.json
+++ b/app/package.json
@@ -1,6 +1,6 @@
{
"name": "gameyfin",
- "version": "2.1.0",
+ "version": "2.1.1-preview",
"type": "module",
"dependencies": {
"@heroui/react": "2.7.9",
@@ -265,4 +265,4 @@
"disableUsageStatistics": true,
"hash": "dba97848bdace60924f9cee496353baae70cfa4fccc7bacaf827807c51908866"
}
-}
+}
\ No newline at end of file
diff --git a/build.gradle.kts b/build.gradle.kts
index 665b0e0..8da615d 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -6,7 +6,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
import java.nio.file.Files
group = "org.gameyfin"
-version = "2.1.0"
+version = "2.1.1-preview"
allprojects {
repositories {
From adf175d938f1dd56be92ee3b512e9ff7a0a27238 Mon Sep 17 00:00:00 2001
From: grimsi <9295182+grimsi@users.noreply.github.com>
Date: Fri, 3 Oct 2025 19:47:16 +0200
Subject: [PATCH 3/5] Redirect to login if superadmin registration fails (most
likely because Gameyfin has already been set up)
---
app/src/main/frontend/views/SetupView.tsx | 31 +++++++++++++++--------
1 file changed, 20 insertions(+), 11 deletions(-)
diff --git a/app/src/main/frontend/views/SetupView.tsx b/app/src/main/frontend/views/SetupView.tsx
index 38d9a4c..1d54e5d 100644
--- a/app/src/main/frontend/views/SetupView.tsx
+++ b/app/src/main/frontend/views/SetupView.tsx
@@ -85,17 +85,26 @@ function SetupView() {
initialValues={{username: '', email: '', password: '', passwordRepeat: ''}}
onSubmit={
async (values: any) => {
- await SetupEndpoint.registerSuperAdmin({
- username: values.username,
- password: values.password,
- email: values.email
- });
- addToast({
- title: "Setup finished",
- description: "Have fun with Gameyfin!",
- color: "success"
- })
- navigate('/login');
+ try {
+ await SetupEndpoint.registerSuperAdmin({
+ username: values.username,
+ password: values.password,
+ email: values.email
+ });
+ addToast({
+ title: "Setup finished",
+ description: "Have fun with Gameyfin!",
+ color: "success"
+ });
+ } catch (e) {
+ addToast({
+ title: "Could not register super admin user",
+ description: "Maybe Gameyfin is already set up?",
+ color: "warning"
+ });
+ } finally {
+ navigate('/login');
+ }
}
}
>
From c1656c08ce9b9bec6c1e95a38bcb14b9244b1abf Mon Sep 17 00:00:00 2001
From: grimsi <9295182+grimsi@users.noreply.github.com>
Date: Fri, 3 Oct 2025 22:32:32 +0200
Subject: [PATCH 4/5] Add image deprecation notice for Docker Hub image
---
.../temp/DockerHubDeprecationPopover.tsx | 44 +++++++++++++++++++
app/src/main/frontend/views/MainLayout.tsx | 24 +++++++---
2 files changed, 61 insertions(+), 7 deletions(-)
create mode 100644 app/src/main/frontend/components/temp/DockerHubDeprecationPopover.tsx
diff --git a/app/src/main/frontend/components/temp/DockerHubDeprecationPopover.tsx b/app/src/main/frontend/components/temp/DockerHubDeprecationPopover.tsx
new file mode 100644
index 0000000..85cdc54
--- /dev/null
+++ b/app/src/main/frontend/components/temp/DockerHubDeprecationPopover.tsx
@@ -0,0 +1,44 @@
+import {Button, Link, Popover, PopoverContent, PopoverTrigger} from "@heroui/react";
+import {Warning} from "@phosphor-icons/react";
+
+// TODO: Remove this component before the release of version 2.2.0
+export default function DockerHubDeprecationPopover() {
+ return (
+
+ Starting with version
+
+ Please switch to{' '}
+
+ ghcr.io/gameyfin/gameyfin
+
+ {' '}if you are currently using the Docker Hub image.
+ Image deprecation notice
+ 2.2.0
+ the image{' '}
+
+ grimsi/gameyfin
+
+ {' '}will no longer be published to Docker Hub.
+