From 24740d0ba05d15f7a43ce98bebaec3715d93a401 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 8 Oct 2021 22:22:26 -0400 Subject: [PATCH] [twitter] Fix typo in remote API path for likes --- twitter/twitter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 3e5419f4..e07cc74f 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -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; } -- 2.39.5