aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-11-08 16:25:36 -0800
committerzotlabs <mike@macgirvin.com>2016-11-08 16:25:36 -0800
commit743cfa13fdf53ec0b7afbd7599dfb8b6d20a91b5 (patch)
tree50993d2bc1324d67d9b50f2f1fa9942bc2318d97 /Zotlabs
parent127ed1b188ca650f5bcd2932d2b3ffafe7fd6bf7 (diff)
downloadvolse-hubzilla-743cfa13fdf53ec0b7afbd7599dfb8b6d20a91b5.tar.gz
volse-hubzilla-743cfa13fdf53ec0b7afbd7599dfb8b6d20a91b5.tar.bz2
volse-hubzilla-743cfa13fdf53ec0b7afbd7599dfb8b6d20a91b5.zip
a bit more background work to support private mail preview
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Mail.php20
1 files changed, 17 insertions, 3 deletions
diff --git a/Zotlabs/Module/Mail.php b/Zotlabs/Module/Mail.php
index a61b02cdf..c767c8e56 100644
--- a/Zotlabs/Module/Mail.php
+++ b/Zotlabs/Module/Mail.php
@@ -83,10 +83,24 @@ class Mail extends \Zotlabs\Web\Controller {
linkify_tags($a, $body, local_channel());
if($preview) {
+ $mail = [
+ 'mailbox' => 'outbox',
+ 'id' => 0,
+ 'mid' => 'M0',
+ 'from_name' => $channel['xchan_name'],
+ 'from_url' => $channel['xchan_url'],
+ 'from_photo' => $channel['xchan_photo_s'],
+ 'subject' => smilies(bbcode($subject)),
+ 'body' => smilies(bbcode($body)),
+ 'attachments' => '',
+ 'can_recall' => false,
+ 'is_recalled' => '',
+ 'date' => datetime_convert('UTC',date_default_timezone_get(),$message['created'], 'c')
+ ];
-
-
-
+ echo replace_macros(get_markup_template('mail_conv.tpl'), [ '$mail' => $mail ] );
+ killme();
+
}
if(! $recipient) {