From c0128432825416929b00d0fa9563f2d1f92e9ba3 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sat, 29 Jan 2011 23:47:40 -0800 Subject: [PATCH] identify email-only contacts --- mod/follow.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mod/follow.php b/mod/follow.php index a90ae3f512..62ba2585c2 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