From: Michael Date: Thu, 21 Dec 2023 05:23:38 +0000 (+0000) Subject: Tumblr/Bluesky: Avoid problems on first fetch X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=96c70489f59c8c9ba6914873a8a2a70c41ca8fa9;p=friendica-addons.git Tumblr/Bluesky: Avoid problems on first fetch --- 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) {