From f7d64d03fc36c4c238e3ea699054a8fdef5597fe Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@madoka.volgo-balt.ru>
Date: Fri, 17 May 2013 22:50:38 +0400
Subject: [PATCH] fix atom:link not supported in rss feeds (fucking fuck)

---
 classes/feeditem/rss.php | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php
index 2f363b4f6..93aa5ea8a 100644
--- a/classes/feeditem/rss.php
+++ b/classes/feeditem/rss.php
@@ -24,6 +24,13 @@ class FeedItem_RSS extends FeedItem_Common {
 		if ($link) {
 			return $link->nodeValue;
 		}
+
+		$link = $this->xpath->query("atom:link", $this->elem)->item(0);
+
+		if ($link) {
+			return $link->nodeValue;
+		}
+
 	}
 
 	function get_title() {
-- 
GitLab