From 713c99a51b1ed1f431ad74b3e1b6d06f4895df63 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 14 Jul 2014 15:50:29 -0700 Subject: issue #536 --- mod/mail.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mod') diff --git a/mod/mail.php b/mod/mail.php index c3ce47b5a..3d3608b40 100644 --- a/mod/mail.php +++ b/mod/mail.php @@ -170,6 +170,19 @@ function mail_content(&$a) { $preselect = (isset($a->argv[2])?array($a->argv[2]):false); + if(x($_REQUEST,'hash')) { + $r = q("select abook.*, xchan.* from abook left join xchan on abook_xchan = xchan_hash + where abook_channel = %d and abook_xchan = '%s' limit 1", + intval(local_user()), + intval(argv(2)) + ); + if($r) { + $prename = $r[0]['xchan_name']; + $preurl = $r[0]['xchan_url']; + $preid = $r[0]['abook_id']; + $preselect = array($preid); + } + } $prename = $preurl = $preid = ''; -- cgit v1.2.3