Merge pull request #2021 from pixelfed/staging

Update PlaceController, fixes #2017
This commit is contained in:
daniel 2020-02-16 01:39:40 -07:00 committed by GitHub
commit dcc504a493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -15,6 +15,8 @@
- Updated mail panel blade view, fix markdown bug ([cbc63b04](https://github.com/pixelfed/pixelfed/commit/cbc63b04))
- Updated self-diagnosis checks ([03f808c7](https://github.com/pixelfed/pixelfed/commit/03f808c7))
- Updated DiscoverController, fixes #2009 ([b04c7170](https://github.com/pixelfed/pixelfed/commit/b04c7170))
- Updated DeleteAccountPipeline, fixes [#2016](https://github.com/pixelfed/pixelfed/issues/2016), a bug affecting account deletion.
- Updated PlaceController, fixes [#2017](https://github.com/pixelfed/pixelfed/issues/2017), a postgres bug affecting country pagination in the places directory ([dd5fa3a4](https://github.com/pixelfed/pixelfed/commit/dd5fa3a4))
## [v0.10.8 (2020-01-29)](https://github.com/pixelfed/pixelfed/compare/v0.10.7...v0.10.8)
### Added

View file

@ -33,7 +33,7 @@ class PlaceController extends Controller
public function directoryCities(Request $request, $country)
{
$country = urldecode($country);
$country = ucfirst(urldecode($country));
$places = Place::whereCountry($country)
->orderBy('name', 'asc')
->distinct('name')