diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b5d230f9..eb207ae36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,14 @@ ### Fixed - Fixed count bug in StatusHashtagService [#1694](https://github.com/pixelfed/pixelfed/pull/1694) +- Fixed private account bug [#1699](https://github.com/pixelfed/pixelfed/pull/1699) ### Changed - Updated EmailService, added new domains [#1690](https://github.com/pixelfed/pixelfed/pull/1690) - Updated quill.js to v1.3.7 [#1692](https://github.com/pixelfed/pixelfed/pull/1690) + +## Deprecated +- Remove deprecated profile following/followers [#1697](https://github.com/pixelfed/pixelfed/pull/1697) ## [v0.10.3 (2019-09-08)](https://github.com/pixelfed/pixelfed/compare/v0.10.2...v0.10.3) diff --git a/app/Http/Controllers/FollowerController.php b/app/Http/Controllers/FollowerController.php index bd3f4b674..dfac38ce4 100644 --- a/app/Http/Controllers/FollowerController.php +++ b/app/Http/Controllers/FollowerController.php @@ -27,7 +27,11 @@ class FollowerController extends Controller ]); $item = (int) $request->input('item'); $this->handleFollowRequest($item); - return response()->json(200); + if($request->wantsJson()) { + return response()->json(200); + } else { + return redirect()->back(); + } } protected function handleFollowRequest($item)