mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-04-19 06:52:14 +02:00
Don't show hidden items in RSS/Atom
This commit is contained in:
parent
884c43f160
commit
7888f5953b
@ -36,12 +36,12 @@ class AtomController extends AbstractController
|
||||
|
||||
if ($group->exists) {
|
||||
$group->components->map(function ($component) use ($feed) {
|
||||
$component->incidents()->orderBy('created_at', 'desc')->get()->map(function ($incident) use ($feed) {
|
||||
$component->incidents()->visible()->orderBy('created_at', 'desc')->get()->map(function ($incident) use ($feed) {
|
||||
$this->feedAddItem($feed, $incident);
|
||||
});
|
||||
});
|
||||
} else {
|
||||
Incident::orderBy('created_at', 'desc')->get()->map(function ($incident) use ($feed) {
|
||||
Incident::visible()->orderBy('created_at', 'desc')->get()->map(function ($incident) use ($feed) {
|
||||
$this->feedAddItem($feed, $incident);
|
||||
});
|
||||
}
|
||||
|
@ -36,12 +36,12 @@ class RssController extends AbstractController
|
||||
|
||||
if ($group->exists) {
|
||||
$group->components->map(function ($component) use ($feed) {
|
||||
$component->incidents()->orderBy('created_at', 'desc')->get()->map(function ($incident) use ($feed) {
|
||||
$component->incidents()->visible()->orderBy('created_at', 'desc')->get()->map(function ($incident) use ($feed) {
|
||||
$this->feedAddItem($feed, $incident);
|
||||
});
|
||||
});
|
||||
} else {
|
||||
Incident::orderBy('created_at', 'desc')->get()->map(function ($incident) use ($feed) {
|
||||
Incident::visible()->orderBy('created_at', 'desc')->get()->map(function ($incident) use ($feed) {
|
||||
$this->feedAddItem($feed, $incident);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user