Fixes #550 in the Laravel 5 branch.

This commit is contained in:
James Brooks
2015-04-03 17:53:57 +01:00
parent 04f957cf39
commit d3554ec4f4
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ class AtomController extends AbstractController
if ($group) {
$group->components->map(function ($component) use ($feed) {
$component->incidents->orderBy('created_at', 'desc')->map(function ($incident) use ($feed) {
$component->incidents()->orderBy('created_at', 'desc')->get()->map(function ($incident) use ($feed) {
$this->feedAddItem($feed, $incident);
});
});