summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-07 18:38:27 +0300
committerAndrew Dolgov <[email protected]>2018-12-07 18:38:27 +0300
commit0b84d1d0dcec0c01c00870d0da540a6db00a7770 (patch)
tree7d1d6858d40dacd2161fcec4580141d836c268a4 /classes/feeds.php
parent95f63e121af66733f398d543d5d9559e3276def6 (diff)
viewfeed: add orig_feed object
Diffstat (limited to 'classes/feeds.php')
-rwxr-xr-xclasses/feeds.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 90add2297..189a1e6b7 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -330,6 +330,17 @@ class Feeds extends Handler_Protected {
$line["enclosures"] = Article::format_article_enclosures($id, $line["always_display_enclosures"],
$line["content"], $line["hide_images"]);
+
+ if ($line["orig_feed_id"]) {
+
+ $ofgh = $this->pdo->prepare("SELECT * FROM ttrss_archived_feeds
+ WHERE id = ? AND owner_uid = ?");
+ $ofgh->execute([$line["orig_feed_id"], $_SESSION['uid']]);
+
+ if ($tmp_line = $ofgh->fetch()) {
+ $line["orig_feed"] = [ $tmp_line["title"], $tmp_line["site_url"], $tmp_line["feed_url"] ];
+ }
+ }
}