aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2019-06-14 20:54:42 +0200
committerMax Kostikov <max@kostikov.co>2019-06-14 20:54:42 +0200
commit86f4a8d33afbdda7f5f2ace003ad237bde387819 (patch)
treec2dc2809852190dfc7645f613fe6c021c3f1b04e /include/items.php
parentabeb924554cc4a91ed5e420a9f426ced3e2a085a (diff)
downloadvolse-hubzilla-86f4a8d33afbdda7f5f2ace003ad237bde387819.tar.gz
volse-hubzilla-86f4a8d33afbdda7f5f2ace003ad237bde387819.tar.bz2
volse-hubzilla-86f4a8d33afbdda7f5f2ace003ad237bde387819.zip
Add signatures processing for private messages
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 9ceb91519..ed5572233 100755
--- a/include/items.php
+++ b/include/items.php
@@ -1457,6 +1457,7 @@ function encode_mail($item,$extended = false) {
$x['to'] = encode_item_xchan($item['to']);
$x['raw'] = $item['mail_raw'];
$x['mimetype'] = $item['mail_mimetype'];
+ $x['sig'] = $item['sig'];
if($item['attach'])
$x['attach'] = json_decode($item['attach'],true);
@@ -1516,6 +1517,9 @@ function get_mail_elements($x) {
$arr['expires'] = datetime_convert('UTC','UTC',$x['expires']);
$arr['mail_flags'] = 0;
+
+ if(array_key_exists('sig',$x))
+ $arr['sig'] = $x['sig'];
if($x['flags'] && is_array($x['flags'])) {
if(in_array('recalled',$x['flags'])) {