Skip to content
Snippets Groups Projects
Commit e2e73581 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix(cache): return a non cached view when connected

parent 4aa73d71
No related branches found
No related tags found
No related merge requests found
...@@ -106,6 +106,7 @@ class EpisodeCommentController extends BaseController ...@@ -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 ...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment