summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/utils.php b/lib/utils.php
index cddfcaaa3..24dd5493e 100644
--- a/lib/utils.php
+++ b/lib/utils.php
@@ -43,11 +43,12 @@ class OC_News_Utils {
$feed = new OC_News_Feed($url, $title, $items);
$favicon = $spfeed->get_image_url();
+ //check if this file exists and the size with getimagesize()
+
if ($favicon == null) {
- // fallback icon
- $favicon = OCP\Util::imagePath('news', 'rss.svg');
- //check if this file exists
+ //handle favicon detection
}
+
$feed->setFavicon($favicon);
return $feed;