mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 17:25:57 +00:00
update: only load existing labels of previously imported articles
This commit is contained in:
@@ -811,6 +811,9 @@
|
|||||||
'$entry_comments',
|
'$entry_comments',
|
||||||
'$num_comments',
|
'$num_comments',
|
||||||
'$entry_author')");
|
'$entry_author')");
|
||||||
|
|
||||||
|
$article_labels = array();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// we keep encountering the entry in feeds, so we need to
|
// we keep encountering the entry in feeds, so we need to
|
||||||
// update date_updated column so that we don't get horrible
|
// update date_updated column so that we don't get horrible
|
||||||
@@ -821,6 +824,8 @@
|
|||||||
|
|
||||||
db_query($link, "UPDATE ttrss_entries SET date_updated = NOW()
|
db_query($link, "UPDATE ttrss_entries SET date_updated = NOW()
|
||||||
WHERE id = '$base_entry_id'");
|
WHERE id = '$base_entry_id'");
|
||||||
|
|
||||||
|
$article_labels = get_article_labels($link, $base_entry_id, $owner_uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
// now it should exist, if not - bad luck then
|
// now it should exist, if not - bad luck then
|
||||||
@@ -875,8 +880,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$article_labels = get_article_labels($link, $entry_ref_id, $owner_uid);
|
|
||||||
|
|
||||||
if (find_article_filter($article_filters, "filter")) {
|
if (find_article_filter($article_filters, "filter")) {
|
||||||
db_query($link, "COMMIT"); // close transaction in progress
|
db_query($link, "COMMIT"); // close transaction in progress
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user