mirror of
https://github.com/friendica/friendica
synced 2025-04-23 16:30:12 +00:00
Merge pull request #12935 from HankG/fix-sending-dms-with-oauth-user
Fix sending dms with oauth user
This commit is contained in:
commit
6394bd91c0
3 changed files with 16 additions and 12 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