summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-02 13:17:20 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-05-02 13:17:20 +0300
commit36f60b51d7a49fe18071f67770064cccf2cb439d (patch)
tree6f6e5693306852f845181aa9eb37c9a4eca1073f
parent44b5b33f3da9012e0028de6230ccbd5a729a4b71 (diff)
make digest sending a hourly cron job
-rw-r--r--classes/RSSUtils.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/classes/RSSUtils.php b/classes/RSSUtils.php
index 7c13dba63..67ee3709d 100644
--- a/classes/RSSUtils.php
+++ b/classes/RSSUtils.php
@@ -285,9 +285,6 @@ class RSSUtils {
self::housekeeping_user($owner_uid);
}
- // Send feed digests by email if needed.
- Digest::send_headlines_digests();
-
return $nf;
}
@@ -1775,6 +1772,14 @@ class RSSUtils {
return 0;
}
);
+
+ PluginHost::getInstance()->add_scheduled_task('send_headlines_digests', '@hourly',
+ function() {
+ Digest::send_headlines_digests();
+
+ return 0;
+ }
+ );
}
static function housekeeping_common(): void {