aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_request.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-23 18:28:33 -0700
committerfriendica <info@friendica.com>2012-04-23 18:28:33 -0700
commitf265863435b15ab08e3312343672ef8d43aea76e (patch)
treef5ec71e3421554f0491a5ae2094db086f8abfd9f /mod/dfrn_request.php
parentaf7abcea2715824cbd6460a7323c8bb64bd5b829 (diff)
downloadvolse-hubzilla-f265863435b15ab08e3312343672ef8d43aea76e.tar.gz
volse-hubzilla-f265863435b15ab08e3312343672ef8d43aea76e.tar.bz2
volse-hubzilla-f265863435b15ab08e3312343672ef8d43aea76e.zip
more work on mail2 (introductions), added 'm' (mail) flag to ACL backend for autocomplete of PM recips
Diffstat (limited to 'mod/dfrn_request.php')
-rw-r--r--mod/dfrn_request.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php
index 74d25adbf..79583ea18 100644
--- a/mod/dfrn_request.php
+++ b/mod/dfrn_request.php
@@ -392,10 +392,22 @@ function dfrn_request_post(&$a) {
);
}
- // contact is created. Now send an email verify form to the requestor.
- //
+ // contact is created. Now create an introduction
+ $hash = random_string();
+ $r = q("insert into intro ( uid, `contact-id`, knowyou, note, hash, datetime, blocked )
+ values( %d , %d, %d, '%s', '%s', '%s', %d ) ",
+ intval($uid),
+ intval($contact_id),
+ ((x($_POST,'knowyou') && ($_POST['knowyou'] == 1)) ? 1 : 0),
+ dbesc(notags(trim($_POST['dfrn-request-message']))),
+ dbesc($hash),
+ dbesc(datetime_convert()),
+ 1
+ );
+
+ // Next send an email verify form to the requestor.
}