From a545b564422750af49f3d051873eef2d30592665 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 26 Feb 2006 08:09:48 +0100 Subject: [PATCH] use author attribute --- backend.php | 12 ++++++++++-- update_daemon.php | 4 ++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/backend.php b/backend.php index 9673174f..da9087f9 100644 --- a/backend.php +++ b/backend.php @@ -903,7 +903,8 @@ $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"); @@ -967,7 +968,14 @@ print "
"; - print ""; + $entry_author = $line["author"]; + + if ($entry_author) { + $entry_author = " - by $entry_author"; + } + + print ""; $parsed_updated = date(get_pref($link, 'LONG_DATE_FORMAT'), strtotime($line["updated"])); diff --git a/update_daemon.php b/update_daemon.php index 62f0982f..8eca25b5 100644 --- a/update_daemon.php +++ b/update_daemon.php @@ -49,6 +49,10 @@ } 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. -- 2.39.5
" . $line["title"] . "
" . $line["title"] . + "$entry_author