Merge pull request #4343 from pixelfed/staging

Update AdminController, fix custom emoji domain search on postgres. C…
This commit is contained in:
daniel 2023-05-03 00:11:40 -06:00 committed by GitHub
commit 6c5b93cc50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -12,6 +12,7 @@
### Fixes ### Fixes
- Fixed `violates check constraint "statuses_visibility_check"` bug affecting postgres instances + various api endpoints ([79b6a17e](https://github.com/pixelfed/pixelfed/commit/79b6a17e)) - 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 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 ### Updates
- Update ApiV1Controller, fix blocking remote accounts. Closes #4256 ([8e71e0c0](https://github.com/pixelfed/pixelfed/commit/8e71e0c0)) - Update ApiV1Controller, fix blocking remote accounts. Closes #4256 ([8e71e0c0](https://github.com/pixelfed/pixelfed/commit/8e71e0c0))

View file

@ -464,7 +464,9 @@ class AdminController extends Controller
->where('shortcode', 'like', '%' . $request->input('q') . '%') ->where('shortcode', 'like', '%' . $request->input('q') . '%')
->orWhere('domain', 'like', '%' . $request->input('q') . '%'); ->orWhere('domain', 'like', '%' . $request->input('q') . '%');
if(!$request->has('dups')) { if(!$request->has('dups')) {
$q = $q->groupBy('shortcode'); if(!$pg) {
$q = $q->groupBy('shortcode');
}
} }
return $q; return $q;
} }