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)) 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; }