mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 22:01:29 +00:00
daemon debugging stuff
This commit is contained in:
@@ -690,7 +690,7 @@
|
|||||||
if (db_num_rows($result) == 1) {
|
if (db_num_rows($result) == 1) {
|
||||||
|
|
||||||
if (defined('DAEMON_EXTENDED_DEBUG')) {
|
if (defined('DAEMON_EXTENDED_DEBUG')) {
|
||||||
_debug("update_rss_feed: base guid found, creating user ref");
|
_debug("update_rss_feed: base guid found, checking for user record");
|
||||||
}
|
}
|
||||||
|
|
||||||
// this will be used below in update handler
|
// this will be used below in update handler
|
||||||
@@ -716,6 +716,13 @@
|
|||||||
$article_filters = get_article_filters($filters, $entry_title,
|
$article_filters = get_article_filters($filters, $entry_title,
|
||||||
$entry_content, $entry_link);
|
$entry_content, $entry_link);
|
||||||
|
|
||||||
|
if (defined('DAEMON_EXTENDED_DEBUG')) {
|
||||||
|
_debug("update_rss_feed: article filters: ");
|
||||||
|
if (count($article_filters) != 0) {
|
||||||
|
print_r($article_filters);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (find_article_filter($article_filters, "filter")) {
|
if (find_article_filter($article_filters, "filter")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -726,10 +733,14 @@
|
|||||||
"SELECT ref_id FROM ttrss_user_entries WHERE
|
"SELECT ref_id FROM ttrss_user_entries WHERE
|
||||||
ref_id = '$ref_id' AND owner_uid = '$owner_uid'
|
ref_id = '$ref_id' AND owner_uid = '$owner_uid'
|
||||||
$dupcheck_qpart");
|
$dupcheck_qpart");
|
||||||
|
|
||||||
// okay it doesn't exist - create user entry
|
// okay it doesn't exist - create user entry
|
||||||
if (db_num_rows($result) == 0) {
|
if (db_num_rows($result) == 0) {
|
||||||
|
|
||||||
|
if (defined('DAEMON_EXTENDED_DEBUG')) {
|
||||||
|
_debug("update_rss_feed: user record not found, creating...");
|
||||||
|
}
|
||||||
|
|
||||||
if (!find_article_filter($article_filters, 'catchup')) {
|
if (!find_article_filter($article_filters, 'catchup')) {
|
||||||
$unread = 'true';
|
$unread = 'true';
|
||||||
$last_read_qpart = 'NULL';
|
$last_read_qpart = 'NULL';
|
||||||
@@ -776,6 +787,10 @@
|
|||||||
// linking to this post as updated
|
// linking to this post as updated
|
||||||
if ($post_needs_update) {
|
if ($post_needs_update) {
|
||||||
|
|
||||||
|
if (defined('DAEMON_EXTENDED_DEBUG')) {
|
||||||
|
_debug("update_rss_feed: post $entry_guid needs update...");
|
||||||
|
}
|
||||||
|
|
||||||
// print "<!-- post $orig_title needs update : $post_needs_update -->";
|
// print "<!-- post $orig_title needs update : $post_needs_update -->";
|
||||||
|
|
||||||
db_query($link, "UPDATE ttrss_entries
|
db_query($link, "UPDATE ttrss_entries
|
||||||
|
|||||||
Reference in New Issue
Block a user