diff options
author | Andrew Dolgov <[email protected]> | 2019-03-21 07:44:39 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-03-21 07:44:39 +0300 |
commit | 3bd3324e5a9171e6cca20b44d1569da41a1d4874 (patch) | |
tree | 2320b9e0a911290e0cfb5ad9b06c790af71e9e69 /update.php | |
parent | 6ae0a3dd3e1d7ec19d8488ef376d9f192bcc5b08 (diff) |
update: add option to send digests
Diffstat (limited to 'update.php')
-rwxr-xr-x | update.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/update.php b/update.php index 81a0ec725..3817c7e26 100755 --- a/update.php +++ b/update.php @@ -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")) |