mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
commit
4e7d0c153c
5 changed files with 13 additions and 2 deletions
|
@ -60,6 +60,7 @@
|
|||
- Updated StatusEntityLexer, prevent boosts and replies from being added to PublicTimelineService. ([32707372](https://github.com/pixelfed/pixelfed/commit/32707372))
|
||||
- Updated SpaController, persist web language changes. ([7bc684e5](https://github.com/pixelfed/pixelfed/commit/7bc684e5))
|
||||
- Update LoginController, bump decayMinutes from 1 to 60. ([6bf92bed](https://github.com/pixelfed/pixelfed/commit/6bf92bed))
|
||||
- Update SPA, rewrite autolink urls to SPA when applicable. ([0837b410](https://github.com/pixelfed/pixelfed/commit/0837b410))
|
||||
- ([](https://github.com/pixelfed/pixelfed/commit/))
|
||||
|
||||
## [v0.11.1 (2021-09-07)](https://github.com/pixelfed/pixelfed/compare/v0.11.0...v0.11.1)
|
||||
|
|
|
@ -116,4 +116,13 @@ class SpaController extends Controller
|
|||
return (string) $converter->convertToHtml($file);
|
||||
});
|
||||
}
|
||||
|
||||
public function usernameRedirect(Request $request, $username)
|
||||
{
|
||||
$id = AccountService::usernameToId($username);
|
||||
if(!$id) {
|
||||
return redirect('/i/web/404');
|
||||
}
|
||||
return redirect('/i/web/profile/' . $id);
|
||||
}
|
||||
}
|
||||
|
|
2
public/js/spa.js
vendored
2
public/js/spa.js
vendored
File diff suppressed because one or more lines are too long
|
@ -24,7 +24,7 @@
|
|||
"/js/rempos.js": "/js/rempos.js?id=2ef46b249c6390aa4ef8",
|
||||
"/js/rempro.js": "/js/rempro.js?id=3971b84aef886204d286",
|
||||
"/js/search.js": "/js/search.js?id=dc888b173463dc3894ba",
|
||||
"/js/spa.js": "/js/spa.js?id=42930813704dd2f2f56e",
|
||||
"/js/spa.js": "/js/spa.js?id=488e44b83eb0f6413184",
|
||||
"/js/status.js": "/js/status.js?id=49fd7ac5b254220021f9",
|
||||
"/js/stories.js": "/js/stories.js?id=ca9d1db6b472a5d58392",
|
||||
"/js/story-compose.js": "/js/story-compose.js?id=0f9d2f7ce5e63ef14c6a",
|
||||
|
|
|
@ -337,6 +337,7 @@ Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofact
|
|||
Route::post('warning', 'AccountInterstitialController@read');
|
||||
Route::get('my2020', 'SeasonalController@yearInReview');
|
||||
|
||||
Route::get('web/username/{id}', 'SpaController@usernameRedirect');
|
||||
Route::get('web/post/{id}', 'SpaController@webPost');
|
||||
Route::get('web/profile/{id}', 'SpaController@webProfile');
|
||||
Route::get('web/{q}', 'SpaController@index')->where('q', '.*');
|
||||
|
|
Loading…
Add table
Reference in a new issue