mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:10:18 +00:00
Accepting contact request does finally work per Mastodon API
This commit is contained in:
parent
f418687a71
commit
f44c9e7975
2 changed files with 10 additions and 2 deletions
|
@ -47,7 +47,12 @@ class FollowRequests extends BaseApi
|
|||
self::checkAllowedScope(self::SCOPE_FOLLOW);
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
$introduction = DI::intro()->selectOneById($this->parameters['id'], $uid);
|
||||
$cdata = Contact::getPublicAndUserContactID($this->parameters['id'], $uid);
|
||||
if (empty($cdata['user'])) {
|
||||
throw new HTTPException\NotFoundException('Contact not found');
|
||||
}
|
||||
|
||||
$introduction = DI::intro()->selectForContact($cdata['user']);
|
||||
|
||||
$contactId = $introduction->cid;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue