Fixes #550 in the Laravel 5 branch.
This commit is contained in:
@@ -27,7 +27,7 @@ class AtomController extends AbstractController
|
|||||||
|
|
||||||
if ($group) {
|
if ($group) {
|
||||||
$group->components->map(function ($component) use ($feed) {
|
$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);
|
$this->feedAddItem($feed, $incident);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ class RssController extends AbstractController
|
|||||||
|
|
||||||
if ($group) {
|
if ($group) {
|
||||||
$group->components->map(function ($component) use ($feed) {
|
$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);
|
$this->feedAddItem($feed, $incident);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user