updater: show owner login instead of just uid

This commit is contained in:
Andrew Dolgov 2021-02-25 14:23:56 +03:00
parent 7869378436
commit 7f18e8c33b
1 changed files with 3 additions and 1 deletions

View File

@ -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))