mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:50:11 +00:00
more work on mail2 (introductions), added 'm' (mail) flag to ACL backend for autocomplete of PM recips
This commit is contained in:
parent
af7abcea27
commit
f265863435
4 changed files with 156 additions and 85 deletions
|
@ -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.
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue