diff options
author | friendica <info@friendica.com> | 2014-07-14 15:50:29 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-07-14 15:50:29 -0700 |
commit | 713c99a51b1ed1f431ad74b3e1b6d06f4895df63 (patch) | |
tree | c19d9c9e2ad86154c8f45fdef50d1d7f5eaf059d /mod | |
parent | 5ad76c4d0c2227e8e241a52b75abedc7503523ac (diff) | |
download | volse-hubzilla-713c99a51b1ed1f431ad74b3e1b6d06f4895df63.tar.gz volse-hubzilla-713c99a51b1ed1f431ad74b3e1b6d06f4895df63.tar.bz2 volse-hubzilla-713c99a51b1ed1f431ad74b3e1b6d06f4895df63.zip |
issue #536
Diffstat (limited to 'mod')
-rw-r--r-- | mod/mail.php | 13 |
1 files changed, 13 insertions, 0 deletions
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 = ''; |