From e4cf951a6ebfd5305a4f15aecce4aca43afc2198 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 3 Nov 2013 16:29:25 +0100 Subject: [PATCH] twitter: One unregister hook was missing --- twitter/twitter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index e18b74452..3cabbff3d 100755 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -84,6 +84,7 @@ function twitter_uninstall() { unregister_hook('jot_networks', 'addon/twitter/twitter.php', 'twitter_jot_nets'); unregister_hook('cron', 'addon/twitter/twitter.php', 'twitter_cron'); unregister_hook('queue_predeliver', 'addon/twitter/twitter.php', 'twitter_queue_hook'); + unregister_hook('follow', 'addon/twitter/twitter.php', 'twitter_follow'); // old setting - remove only unregister_hook('post_local_end', 'addon/twitter/twitter.php', 'twitter_post_hook'); @@ -1411,7 +1412,8 @@ function twitter_createpost($a, $uid, $post, $self, $create_user, $only_existing $postarray['tag'] = $converted["tags"]; - if (!intval(get_config('system','wall-to-wall_share'))) { + // Deactivated at the moment, since there are problems with answers to retweets + if (false AND !intval(get_config('system','wall-to-wall_share'))) { $postarray['body'] = "[share author='".$post->retweeted_status->user->name. "' profile='https://twitter.com/".$post->retweeted_status->user->screen_name. "' avatar='".$post->retweeted_status->user->profile_image_url_https.