[twitter] Fix typo in remote API path for likes

This commit is contained in:
Hypolite Petovan 2021-10-08 22:22:26 -04:00
parent 21efea5b50
commit 24740d0ba0

View 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;
}