[twitter] Fix typo in remote API path for likes

pull/1185/head
Hypolite Petovan 2021-10-08 22:22:26 -04:00
parent 21efea5b50
commit 24740d0ba0
1 changed files with 1 additions and 1 deletions

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