mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Fix forum/forumpost pages routing
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
2018-03-27 DariusIII
|
||||
* Fix: Fix forum/forumpost pages routing
|
||||
* Chg: Remove $kernel variable assignment from bootstraping laravel
|
||||
* Chg: Fix RSS feeds for logged out users
|
||||
2018-03-26 DariusIII
|
||||
|
||||
@@ -12,14 +12,12 @@ $id = request()->input('id') + 0;
|
||||
|
||||
if (! empty(request()->input('addMessage')) && $page->isPostBack()) {
|
||||
Forumpost::add($id, Auth::id(), '', request()->input('addMessage'));
|
||||
request()->header('/forumpost/'.$id.'#last');
|
||||
die();
|
||||
header('/forumpost/'.$id.'#last');
|
||||
}
|
||||
|
||||
$results = Forumpost::getPosts($id);
|
||||
if (count($results) === 0) {
|
||||
request()->header('/forum');
|
||||
die();
|
||||
header('/forum');
|
||||
}
|
||||
|
||||
$page->meta_title = 'Forum Post';
|
||||
|
||||
+2
-2
@@ -109,11 +109,11 @@ Route::post('/forum', function () {
|
||||
redirect('/forum');
|
||||
})->middleware('auth');
|
||||
|
||||
Route::get('/forumpost', function () {
|
||||
Route::get('/forumpost/{id}', function () {
|
||||
redirect('/forumpost');
|
||||
})->middleware('auth');
|
||||
|
||||
Route::post('/forumpost', function () {
|
||||
Route::post('/forumpost/{id}', function () {
|
||||
redirect('/forumpost');
|
||||
})->middleware('auth');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user