mirror of
https://github.com/friendica/friendica
synced 2025-04-22 19:10:12 +00:00
Fix Twitter NewDM API w/OAuth by passing in UID not query session
This commit is contained in:
parent
cf0302b3c1
commit
0a5e3c75dc
2 changed files with 13 additions and 11 deletions
|
@ -83,7 +83,7 @@ class NewDM extends BaseApi
|
|||
|
||||
$cdata = Contact::getPublicAndUserContactID($cid, $uid);
|
||||
|
||||
$id = Mail::send($cdata['user'], $request['text'], $sub, $replyto);
|
||||
$id = Mail::send($uid, $cdata['user'], $request['text'], $sub, $replyto);
|
||||
|
||||
if ($id > -1) {
|
||||
$ret = $this->directMessage->createFromMailId($id, $uid, $this->getRequestValue($request, 'getText', ''));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue