aboutsummaryrefslogtreecommitdiffstats
path: root/include/message.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-06-15 23:07:39 +0200
committerMario <mario@mariovavti.com>2019-06-15 23:07:39 +0200
commit3bc214e5449c7ce190a35ae6e70a1fb7ebe84962 (patch)
tree2687f7ec477ab98c2488d430ffcf79731a85e198 /include/message.php
parenta26774b99e1cf3e69df4f527e2c4c4443dce63ad (diff)
parent43cec4398d0d035dd9446988134b814513a73080 (diff)
downloadvolse-hubzilla-3bc214e5449c7ce190a35ae6e70a1fb7ebe84962.tar.gz
volse-hubzilla-3bc214e5449c7ce190a35ae6e70a1fb7ebe84962.tar.bz2
volse-hubzilla-3bc214e5449c7ce190a35ae6e70a1fb7ebe84962.zip
Merge branch 'dev' into 'dev'
Add signatures processing for private messages See merge request hubzilla/core!1670
Diffstat (limited to 'include/message.php')
-rw-r--r--include/message.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/message.php b/include/message.php
index 2486beb83..7d05b9ab7 100644
--- a/include/message.php
+++ b/include/message.php
@@ -19,7 +19,7 @@ function mail_prepare_binary($item) {
// send a private message
-function send_message($uid = 0, $recipient = '', $body = '', $subject = '', $replyto = '', $expires = NULL_DATE, $mimetype = 'text/bbcode', $raw = false) {
+function send_message($uid = 0, $recipient = '', $body = '', $subject = '', $replyto = '', $expires = NULL_DATE, $mimetype = 'text/bbcode', $raw = false, $sig = '') {
$ret = array('success' => false);
$is_reply = false;
@@ -175,8 +175,7 @@ function send_message($uid = 0, $recipient = '', $body = '', $subject = '', $rep
$subject = str_rot47(base64url_encode($subject));
if(($body )&& (! $raw))
$body = str_rot47(base64url_encode($body));
-
- $sig = ''; // placeholder
+
$mimetype = ''; //placeholder
$r = q("INSERT INTO mail ( account_id, conv_guid, mail_obscured, channel_id, from_xchan, to_xchan, mail_mimetype, title, body, sig, attach, mid, parent_mid, created, expires, mail_isreply, mail_raw )