aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-29 23:47:40 -0800
committerFriendika <info@friendika.com>2011-01-29 23:47:40 -0800
commitc0128432825416929b00d0fa9563f2d1f92e9ba3 (patch)
tree42b176a0983400391305e315aa28384779e67eed /mod
parent8673b08c1c1daffcd166ad96b2b3729a893ab5c8 (diff)
downloadvolse-hubzilla-c0128432825416929b00d0fa9563f2d1f92e9ba3.tar.gz
volse-hubzilla-c0128432825416929b00d0fa9563f2d1f92e9ba3.tar.bz2
volse-hubzilla-c0128432825416929b00d0fa9563f2d1f92e9ba3.zip
identify email-only contacts
Diffstat (limited to 'mod')
-rw-r--r--mod/follow.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/mod/follow.php b/mod/follow.php
index a90ae3f51..62ba2585c 100644
--- a/mod/follow.php
+++ b/mod/follow.php
@@ -10,7 +10,9 @@ function follow_post(&$a) {
// NOTREACHED
}
- $url = notags(trim($_POST['url']));
+ $url = $orig_url = notags(trim($_POST['url']));
+
+ $email_conversant = false;
if($url) {
$links = lrdd($url);
@@ -29,6 +31,11 @@ function follow_post(&$a) {
}
}
+ else {
+ if((strpos($orig_url,'@')) && validate_email($orig_url)) {
+ $email_conversant = true;
+ }
+ }
}
// If we find a DFRN site, send our subscriber to the other person's