aboutsummaryrefslogtreecommitdiffstats
path: root/mod/mail.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-14 15:50:29 -0700
committerfriendica <info@friendica.com>2014-07-14 15:50:29 -0700
commit713c99a51b1ed1f431ad74b3e1b6d06f4895df63 (patch)
treec19d9c9e2ad86154c8f45fdef50d1d7f5eaf059d /mod/mail.php
parent5ad76c4d0c2227e8e241a52b75abedc7503523ac (diff)
downloadvolse-hubzilla-713c99a51b1ed1f431ad74b3e1b6d06f4895df63.tar.gz
volse-hubzilla-713c99a51b1ed1f431ad74b3e1b6d06f4895df63.tar.bz2
volse-hubzilla-713c99a51b1ed1f431ad74b3e1b6d06f4895df63.zip
issue #536
Diffstat (limited to 'mod/mail.php')
-rw-r--r--mod/mail.php13
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 = '';