From 96c70489f59c8c9ba6914873a8a2a70c41ca8fa9 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 21 Dec 2023 05:23:38 +0000 Subject: [PATCH] Tumblr/Bluesky: Avoid problems on first fetch --- bluesky/bluesky.php | 2 +- tumblr/tumblr.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bluesky/bluesky.php b/bluesky/bluesky.php index 94d5cb31..dac95437 100644 --- a/bluesky/bluesky.php +++ b/bluesky/bluesky.php @@ -463,7 +463,7 @@ function bluesky_jot_nets(array &$jotnets_fields) function bluesky_cron() { - $last = DI::keyValue()->get('bluesky_last_poll'); + $last = (int)DI::keyValue()->get('bluesky_last_poll'); $poll_interval = intval(DI::config()->get('bluesky', 'poll_interval')); if (!$poll_interval) { diff --git a/tumblr/tumblr.php b/tumblr/tumblr.php index 9b29deb3..4d5368b8 100644 --- a/tumblr/tumblr.php +++ b/tumblr/tumblr.php @@ -406,7 +406,7 @@ function tumblr_settings_post(array &$b) function tumblr_cron() { - $last = DI::keyValue()->get('tumblr_last_poll'); + $last = (int)DI::keyValue()->get('tumblr_last_poll'); $poll_interval = intval(DI::config()->get('tumblr', 'poll_interval')); if (!$poll_interval) { -- 2.39.5