]> git.wh0rd.org - tt-rss.git/commitdiff
use author attribute
authorAndrew Dolgov <fox@madoka.spb.ru>
Sun, 26 Feb 2006 07:09:48 +0000 (08:09 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Sun, 26 Feb 2006 07:09:48 +0000 (08:09 +0100)
backend.php
update_daemon.php

index 9673174fee9b98917ee84dfe844573bba209f471..da9087f9c17f78181e55e3fbad9608c57efb3bc6 100644 (file)
                $result = db_query($link, "SELECT title,link,content,feed_id,comments,int_id,
                        SUBSTRING(updated,1,16) as updated,
                        (SELECT icon_url FROM ttrss_feeds WHERE id = feed_id) as icon_url,
-                       num_comments
+                       num_comments,
+                       author
                        FROM ttrss_entries,ttrss_user_entries
                        WHERE   id = '$id' AND ref_id = id");
 
 
                        print "<div class=\"postHeader\"><table width=\"100%\">";
 
-                       print "<tr><td><a href=\"" . $line["link"] . "\">" . $line["title"] . "</a></td>";
+                       $entry_author = $line["author"];
+
+                       if ($entry_author) {
+                               $entry_author = " - by $entry_author";
+                       }
+
+                       print "<tr><td><a href=\"" . $line["link"] . "\">" . $line["title"] . 
+                               "</a>$entry_author</td>";
 
                        $parsed_updated = date(get_pref($link, 'LONG_DATE_FORMAT'), 
                                strtotime($line["updated"]));
index 62f0982fc3b6c712e89ee558abb76ac4b9ef12f6..8eca25b5996058932f143524cdfa20fb504aa167 100644 (file)
        }
 
        while (true) {
+               
+               print "Purging old posts...\n";
+
+               global_purge_old_posts($link, false);
 
                // FIXME: get all scheduled updates w/forced refetch
                // Stub, until I figure out if it is really needed.