|
@@ -194,6 +194,7 @@ class UsersController extends \lithium\action\Controller {
|
|
|
//Set the feed variable scope (since we are going to use it outside the loop)
|
|
//Set the feed variable scope (since we are going to use it outside the loop)
|
|
|
$feed;
|
|
$feed;
|
|
|
|
|
|
|
|
|
|
+ if (isset($user->feed)) {
|
|
|
//For each post ID in $users feed,
|
|
//For each post ID in $users feed,
|
|
|
foreach ($user->feed as $post)
|
|
foreach ($user->feed as $post)
|
|
|
{
|
|
{
|
|
@@ -216,6 +217,7 @@ class UsersController extends \lithium\action\Controller {
|
|
|
$feed = array_reverse($feed);
|
|
$feed = array_reverse($feed);
|
|
|
|
|
|
|
|
//This renders a custom layout we use for the feed, then passes user and feed to the view for the variables.
|
|
//This renders a custom layout we use for the feed, then passes user and feed to the view for the variables.
|
|
|
|
|
+ }
|
|
|
return compact('user', 'feed');
|
|
return compact('user', 'feed');
|
|
|
}
|
|
}
|
|
|
|
|
|