]> git.mxchange.org Git - friendica-addons.git/commitdiff
[twitter] Fix typo in remote API path for likes
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Oct 2021 02:22:26 +0000 (22:22 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Oct 2021 02:22:26 +0000 (22:22 -0400)
twitter/twitter.php

index 3e5419f481da2cb4e3b3bffa4ba5a7e294151c64..e07cc74f71b4ffbcbdacc9c77991c48d326130d3 100644 (file)
@@ -630,7 +630,7 @@ function twitter_post_hook(App $a, array &$b)
        if ($b['verb'] == Activity::LIKE) {
                Logger::info('Like', ['uid' => $b['uid'], 'id' => twitter_get_id($b["thr-parent"])]);
 
-               twitter_api_post($b['deleted'] ? 'favorite/destroy' : 'favorite/create', twitter_get_id($b["thr-parent"]), $b["uid"]);
+               twitter_api_post($b['deleted'] ? 'favorites/destroy' : 'favorites/create', twitter_get_id($b["thr-parent"]), $b["uid"]);
 
                return;
        }