aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Mail.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module/Mail.php')
-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) {