]> git.mxchange.org Git - friendica-addons.git/commitdiff
[twitter] Fix typo in API path for unfollowing
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Oct 2021 05:58:55 +0000 (01:58 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Oct 2021 06:05:25 +0000 (02:05 -0400)
twitter/twitter.php

index c443f0c281f0b2caebfb5d6fed2276ffba7032df..1c54c9aeec52e46bb88c6e3bf8eed3ee82c2c292 100644 (file)
@@ -170,7 +170,7 @@ function twitter_follow(App $a, array &$contact)
 
 function twitter_unfollow(App $a, array &$hook_data)
 {
-       $hook_data['result'] = twitter_api_contact('friendship/destroy', $hook_data['contact'], $hook_data['uid']);
+       $hook_data['result'] = twitter_api_contact('friendships/destroy', $hook_data['contact'], $hook_data['contact']['uid']);
 }
 
 function twitter_block(App $a, array &$hook_data)