Remove username length patch

Upstream allows for 30 char usernames now, so patch is no longer needed.
This commit is contained in:
chris 2025-01-17 16:11:39 +01:00
parent 8549d5b8cc
commit 1a1069d69a
6 changed files with 3 additions and 31 deletions

View file

@ -38,8 +38,7 @@ RUN set -xe;\
git apply /patches/0001-remove-IP-logging.patch &&\
git apply /patches/0002-hardcode-discovery-settings.patch &&\
git apply /patches/0003-point-to-modified-sourcecode.patch &&\
git apply /patches/0004-allow-30-char-usernames.patch &&\
git apply /patches/0005-disable-beagle.patch &&\
git apply /patches/0004-disable-beagle.patch &&\
ENABLE_CONFIG_CACHE=false composer install --prefer-dist --no-interaction --no-ansi --no-dev --optimize-autoloader &&\
ln -s public html &&\
chown -R www-data:www-data /var/www &&\

View file

@ -37,8 +37,7 @@ RUN set -xe;\
git apply /patches/0001-remove-IP-logging.patch &&\
git apply /patches/0002-hardcode-discovery-settings.patch &&\
git apply /patches/0003-point-to-modified-sourcecode.patch &&\
git apply /patches/0004-allow-30-char-usernames.patch &&\
git apply /patches/0005-disable-beagle.patch &&\
git apply /patches/0004-disable-beagle.patch &&\
ENABLE_CONFIG_CACHE=false composer install --prefer-dist --no-interaction --no-ansi --no-dev --optimize-autoloader &&\
chown -R www-data:www-data /var/www &&\
cp -r storage storage.skel &&\

View file

@ -1,26 +0,0 @@
From 8c705c51b2efb7610aa006ed16584144890779c8 Mon Sep 17 00:00:00 2001
From: chris <cg@ritona.int.zknt.org>
Date: Mon, 6 Jan 2025 23:02:23 +0100
Subject: [PATCH 4/6] allow 30 char usernames
raise maximum username length, because why not?
---
app/Http/Controllers/Auth/RegisterController.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php
index 1d0e415c..3150ddba 100644
--- a/app/Http/Controllers/Auth/RegisterController.php
+++ b/app/Http/Controllers/Auth/RegisterController.php
@@ -69,7 +69,7 @@ class RegisterController extends Controller
$usernameRules = [
'required',
'min:2',
- 'max:15',
+ 'max:30',
'unique:users',
function ($attribute, $value, $fail) {
$dash = substr_count($value, '-');
--
2.47.0

View file

@ -1,3 +1,3 @@
Various patches against [https://github.com/pixelfed/pixelfed](dansups pixelfed).
All patches except for patch 006 (adding legal notice links to the frontpage) are included in my prebuilt images, zknt/pixelfed on docker hub and quay.io.
All patches except for patch 005 (adding legal notice links to the frontpage) are included in my prebuilt images, zknt/pixelfed on docker hub and quay.io.