mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 03:57:45 +02:00
fix: redirect to non cached views when authenticated in public views
This commit is contained in:
parent
c1581c1fd4
commit
482b47ba6b
2 changed files with 13 additions and 0 deletions
|
|
@ -89,7 +89,10 @@ class EpisodeController extends BaseController
|
|||
|
||||
if (can_user_interact()) {
|
||||
helper('form');
|
||||
|
||||
return view('episode/comments', $data);
|
||||
}
|
||||
|
||||
// The page cache is set to a decade so it is deleted manually upon podcast update
|
||||
return view('episode/comments', $data, [
|
||||
'cache' => $secondsToNextUnpublishedEpisode
|
||||
|
|
@ -128,6 +131,8 @@ class EpisodeController extends BaseController
|
|||
|
||||
if (can_user_interact()) {
|
||||
helper('form');
|
||||
|
||||
return view('episode/activity', $data);
|
||||
}
|
||||
// The page cache is set to a decade so it is deleted manually upon podcast update
|
||||
return view('episode/activity', $data, [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue