Fixes #550 in the Laravel 5 branch.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user