From 7f18e8c33b820c38dc393d9366b14faf1c6eeac3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Feb 2021 14:23:56 +0300 Subject: [PATCH] updater: show owner login instead of just uid --- classes/rssutils.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/rssutils.php b/classes/rssutils.php index ff56e0253..e303fcd05 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -160,6 +160,7 @@ class RSSUtils { $user_query = "SELECT f.id, last_updated, f.owner_uid, + u.login AS owner, f.title FROM ttrss_feeds f, ttrss_users u LEFT JOIN ttrss_user_prefs2 p ON (p.owner_uid = u.id AND profile IS NULL AND pref_name = 'DEFAULT_UPDATE_INTERVAL') @@ -181,7 +182,8 @@ class RSSUtils { $usth->execute(["feed" => $feed]); if ($tline = $usth->fetch()) { - Debug::log(sprintf("=> %s (ID: %d, UID: %d), last updated: %s", $tline["title"], $tline["id"], $tline["owner_uid"], + Debug::log(sprintf("=> %s (ID: %d, U: %s [%d]), last updated: %s", $tline["title"], $tline["id"], + $tline["owner"], $tline["owner_uid"], $tline["last_updated"] ? $tline["last_updated"] : "never")); if (!in_array($tline["owner_uid"], $batch_owners))