diff options
author | zotlabs <mike@macgirvin.com> | 2016-11-08 16:25:36 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2016-11-08 16:25:36 -0800 |
commit | 743cfa13fdf53ec0b7afbd7599dfb8b6d20a91b5 (patch) | |
tree | 50993d2bc1324d67d9b50f2f1fa9942bc2318d97 /Zotlabs/Module | |
parent | 127ed1b188ca650f5bcd2932d2b3ffafe7fd6bf7 (diff) | |
download | volse-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/Module')
-rw-r--r-- | Zotlabs/Module/Mail.php | 20 |
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) { |