mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-30 11:44:59 +00:00
commit
3bf3289b57
9 changed files with 21 additions and 0 deletions
|
@ -57,6 +57,8 @@
|
|||
- Updated ComposeController, add collection support to compose endpoint. ([ec2cfaf5](https://github.com/pixelfed/pixelfed/commit/ec2cfaf5))
|
||||
- Updated instance config, match default oauth settings in AuthServiceProvider. ([52f25ff1](https://github.com/pixelfed/pixelfed/commit/52f25ff1))
|
||||
- Updated ComposeModal.vue, fix redirect after posting. Fixes #3254. ([5db64e94](https://github.com/pixelfed/pixelfed/commit/5db64e94))
|
||||
- Updated StatusController, redirect status view for authed users to Metro 2.0 UI. ([71dff472](https://github.com/pixelfed/pixelfed/commit/71dff472))
|
||||
- Updated ProfileController, redirect profile view for authed users to Metro 2.0 UI. ([7f8129a7](https://github.com/pixelfed/pixelfed/commit/7f8129a7))
|
||||
- ([](https://github.com/pixelfed/pixelfed/commit/))
|
||||
|
||||
## [v0.11.2 (2022-01-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.1...v0.11.2)
|
||||
|
|
|
@ -26,6 +26,17 @@ class ProfileController extends Controller
|
|||
{
|
||||
public function show(Request $request, $username)
|
||||
{
|
||||
// redirect authed users to Metro 2.0
|
||||
if($request->user()) {
|
||||
// unless they force static view
|
||||
if(!$request->has('fs') || $request->input('fs') != '1') {
|
||||
$pid = AccountService::usernameToId($username);
|
||||
if($pid) {
|
||||
return redirect('/i/web/profile/' . $pid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$user = Profile::whereNull('domain')
|
||||
->whereNull('status')
|
||||
->whereUsername($username)
|
||||
|
|
|
@ -31,6 +31,14 @@ class StatusController extends Controller
|
|||
{
|
||||
public function show(Request $request, $username, $id)
|
||||
{
|
||||
// redirect authed users to Metro 2.0
|
||||
if($request->user()) {
|
||||
// unless they force static view
|
||||
if(!$request->has('fs') || $request->input('fs') != '1') {
|
||||
return redirect('/i/web/post/' . $id);
|
||||
}
|
||||
}
|
||||
|
||||
$user = Profile::whereNull('domain')->whereUsername($username)->firstOrFail();
|
||||
|
||||
if($user->status != null) {
|
||||
|
|
BIN
public/js/compose-chunk.js
vendored
BIN
public/js/compose-chunk.js
vendored
Binary file not shown.
BIN
public/js/compose.js
vendored
BIN
public/js/compose.js
vendored
Binary file not shown.
BIN
public/js/home-chunk.js
vendored
BIN
public/js/home-chunk.js
vendored
Binary file not shown.
BIN
public/js/post-chunk.js
vendored
BIN
public/js/post-chunk.js
vendored
Binary file not shown.
BIN
public/js/profile-chunk.js
vendored
BIN
public/js/profile-chunk.js
vendored
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue