1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:46:00 +00:00

update: add option to send digests

This commit is contained in:
Andrew Dolgov
2019-03-21 07:44:39 +03:00
parent 6ae0a3dd3e
commit 3bd3324e5a
3 changed files with 15 additions and 9 deletions

View File

@@ -24,6 +24,7 @@
$longopts = array("feeds",
"daemon",
"daemon-loop",
"send-digests",
"task:",
"cleanup-tags",
"quiet",
@@ -87,6 +88,7 @@
print " --update-schema - update database schema\n";
print " --gen-search-idx - generate basic PostgreSQL fulltext search index\n";
print " --convert-filters - convert type1 filters to type2\n";
print " --send-digests - send pending email digests\n";
print " --force-update - force update of all feeds\n";
print " --list-plugins - list all available plugins\n";
print " --debug-feed N - perform debug update of feed N\n";
@@ -432,6 +434,10 @@
exit($rc);
}
if (isset($options["send-digests"])) {
Digest::send_headlines_digests();
}
PluginHost::getInstance()->run_commands($options);
if (file_exists(LOCK_DIRECTORY . "/$lock_filename"))