aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-16 19:17:39 -0800
committerredmatrix <redmatrix@redmatrix.me>2015-11-16 19:17:39 -0800
commit6df98f080ba0c9a0309158c1ea5d48f95aae71ee (patch)
tree9137ccdfb7562297121a16d2399bfe057c890b04 /include/api.php
parent0cb5f009b483ff570ded4570bb45023573531494 (diff)
downloadvolse-hubzilla-6df98f080ba0c9a0309158c1ea5d48f95aae71ee.tar.gz
volse-hubzilla-6df98f080ba0c9a0309158c1ea5d48f95aae71ee.tar.bz2
volse-hubzilla-6df98f080ba0c9a0309158c1ea5d48f95aae71ee.zip
fix api/direct_messages/new at least for the json case. We seem to have a missing template for XML
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/api.php b/include/api.php
index 53adcc868..f781987d1 100644
--- a/include/api.php
+++ b/include/api.php
@@ -909,7 +909,7 @@ require_once('include/api_auth.php');
function red_item(&$a, $type) {
if (api_user() === false) {
- logger('api_red_item_new: no user');
+ logger('api_red_item_full: no user');
return false;
}
@@ -2196,7 +2196,7 @@ require_once('include/api_auth.php');
}
}
- $id = send_message($recipient['id'], $_POST['text'], $sub, $replyto);
+ $id = send_message(api_user(),$recipient['guid'], $_POST['text'], $sub, $replyto);
if ($id>-1) {
$r = q("SELECT * FROM `mail` WHERE id=%d", intval($id));