mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-06 18:31:05 +00:00
fix(cache): return a non cached view when connected
This commit is contained in:
parent
4aa73d71e3
commit
e2e735815d
@ -106,6 +106,7 @@ class EpisodeCommentController extends BaseController
|
|||||||
// if user is logged in then send to the authenticated activity view
|
// if user is logged in then send to the authenticated activity view
|
||||||
if (can_user_interact()) {
|
if (can_user_interact()) {
|
||||||
helper('form');
|
helper('form');
|
||||||
|
return view('episode/comment', $data);
|
||||||
}
|
}
|
||||||
return view('episode/comment', $data, [
|
return view('episode/comment', $data, [
|
||||||
'cache' => DECADE,
|
'cache' => DECADE,
|
||||||
|
@ -96,6 +96,7 @@ class PostController extends FediversePostController
|
|||||||
// if user is logged in then send to the authenticated activity view
|
// if user is logged in then send to the authenticated activity view
|
||||||
if (can_user_interact()) {
|
if (can_user_interact()) {
|
||||||
helper('form');
|
helper('form');
|
||||||
|
return view('post/post', $data);
|
||||||
}
|
}
|
||||||
return view('post/post', $data, [
|
return view('post/post', $data, [
|
||||||
'cache' => DECADE,
|
'cache' => DECADE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user