From 8400258f07c308d3a6ea64cb12fb07db97ff54cc Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 27 Apr 2023 05:28:05 +0000 Subject: [PATCH] Tumblr: Added support for hook "support_probe" --- tumblr/tumblr.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tumblr/tumblr.php b/tumblr/tumblr.php index d8ab10fc..87b8ad44 100644 --- a/tumblr/tumblr.php +++ b/tumblr/tumblr.php @@ -51,6 +51,7 @@ function tumblr_install() Hook::register('connector_settings_post', __FILE__, 'tumblr_settings_post'); Hook::register('cron', __FILE__, 'tumblr_cron'); Hook::register('support_follow', __FILE__, 'tumblr_support_follow'); + Hook::register('support_probe', __FILE__, 'tumblr_support_probe'); Hook::register('follow', __FILE__, 'tumblr_follow'); Hook::register('unfollow', __FILE__, 'tumblr_unfollow'); Hook::register('block', __FILE__, 'tumblr_block'); @@ -138,6 +139,13 @@ function tumblr_support_follow(array &$data) } } +function tumblr_support_probe(array &$data) +{ + if ($data['protocol'] == Protocol::TUMBLR) { + $data['result'] = true; + } +} + function tumblr_follow(array &$hook_data) { $uid = DI::userSession()->getLocalUserId(); -- 2.39.5