Use correct function to fetch the self user

This commit is contained in:
Michael 2021-11-21 00:26:35 +00:00
parent ae99144f57
commit 2c6afe65a7
3 changed files with 10 additions and 17 deletions

View file

@ -329,9 +329,6 @@ class BaseApi extends BaseModule
}
$user_info = DI::twitterUser()->createFromContactId($cid)->toArray();
if (empty($user_info)) {
return $arr;
}
$arr['$user'] = $user_info;
$arr['$rss'] = [