From 3dac45f3882c61528943a73178702b9fbe730a70 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 3 May 2023 00:10:08 -0600 Subject: [PATCH 1/2] Update AdminController, fix custom emoji domain search on postgres. Closes #4333 --- app/Http/Controllers/AdminController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/AdminController.php b/app/Http/Controllers/AdminController.php index 4cc8688c5..caa9c19fc 100644 --- a/app/Http/Controllers/AdminController.php +++ b/app/Http/Controllers/AdminController.php @@ -464,7 +464,9 @@ class AdminController extends Controller ->where('shortcode', 'like', '%' . $request->input('q') . '%') ->orWhere('domain', 'like', '%' . $request->input('q') . '%'); if(!$request->has('dups')) { - $q = $q->groupBy('shortcode'); + if(!$pg) { + $q = $q->groupBy('shortcode'); + } } return $q; } From 623f62ef7143d2d6d82e830103ab2cbd9a11ab0c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 3 May 2023 00:11:20 -0600 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ceb5d101e..526384a7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ ### Fixes - Fixed `violates check constraint "statuses_visibility_check"` bug affecting postgres instances + various api endpoints ([79b6a17e](https://github.com/pixelfed/pixelfed/commit/79b6a17e)) - Fixed duplicate hashtags on postgres ([64059cb4](https://github.com/pixelfed/pixelfed/commit/64059cb4)) +- Fixed custom emoji domain search on postgres. Closes #4333 ([3dac45f3](https://github.com/pixelfed/pixelfed/commit/3dac45f3)) ### Updates - Update ApiV1Controller, fix blocking remote accounts. Closes #4256 ([8e71e0c0](https://github.com/pixelfed/pixelfed/commit/8e71e0c0))