Commit 213a4857 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Use content rather than description element from rss feeds when available


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 126cabdb
......@@ -311,11 +311,7 @@ class PluginBlocktypeExternalfeed extends SystemBlocktype {
if ($count == 10) {
break;
}
$description = $item->description;
if (!$description && ($item->content || $item->summary)) {
// ATOM feed
$description = $item->content ? $item->content : ($item->summary ? $item->summary : null);
}
$description = $item->content ? $item->content : ($item->description ? $item->description : ($item->summary ? $item->summary : null));
$data->content[] = (object)array('title' => $item->title, 'link' => $item->link, 'description' => $description);
}
$cache[$source] = $data;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment