1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 20:35:55 +00:00

add ttrss_filters2.last_triggered (bump schema version)

This commit is contained in:
Andrew Dolgov
2018-12-06 19:37:20 +03:00
parent a01c33d654
commit 3e4326e34d
8 changed files with 33 additions and 4 deletions

View File

@@ -781,6 +781,12 @@ class RSSUtils {
$plugin->hook_filter_triggered($feed, $owner_uid, $article, $matched_filters, $matched_rules, $article_filters);
}
$matched_filter_ids = implode(",", array_map(function($f) { return $f['id']; }, $matched_filters));
$fsth = $pdo->prepare("UPDATE ttrss_filters2 SET last_triggered = NOW() WHERE
id IN (?) AND owner_uid = ?");
$fsth->execute([$matched_filter_ids, $owner_uid]);
if (Debug::get_loglevel() >= Debug::$LOG_EXTENDED) {
Debug::log("matched filters: ", Debug::$LOG_VERBOSE);