Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
return json for profiles even in browser for now
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpk committed Sep 1, 2018
1 parent 8fb93ee commit 78ea505
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ public function get($username, $format=false) {
if($user->external_domain) {
return redirect('https://' . $user->external_domain . '/');
} else {
return view('profile', [
]);
return $this->get($username, 'json');
}
}

Expand Down

0 comments on commit 78ea505

Please sign in to comment.