From a1ea1e12a86d18a987a4242320fa3081f5a1b979 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 26 Aug 2005 06:11:41 +0100 Subject: support for comments attribute (schema updated) --- backend.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'backend.php') diff --git a/backend.php b/backend.php index 3d304655a..1ae88917e 100644 --- a/backend.php +++ b/backend.php @@ -178,7 +178,7 @@ $result = pg_query("UPDATE ttrss_entries SET unread = false,last_read = NOW() WHERE id = '$id'"); - $result = pg_query("SELECT title,link,content,feed_id, + $result = pg_query("SELECT title,link,content,feed_id,comments, (SELECT icon_url FROM ttrss_feeds WHERE id = feed_id) as icon_url FROM ttrss_entries WHERE id = '$id'"); @@ -199,10 +199,18 @@ print "Title: ".$line["title"]."  "; - + + if ($line["comments"] && $line["comments"] != $line["link"]) { +// print "Comments: +// ".$line["comments"]." +//   "; + + $comments_prompt = "(Comments)"; + } + print "Link: - ".$line["link"]." -   "; + ".$line["link"]." $comments_prompt +  "; print "" . $line["content"] . " $feed_icon -- cgit v1.2.3