]> git.mxchange.org Git - friendica.git/commitdiff
identify email-only contacts
authorFriendika <info@friendika.com>
Sun, 30 Jan 2011 07:47:40 +0000 (23:47 -0800)
committerFriendika <info@friendika.com>
Sun, 30 Jan 2011 07:47:40 +0000 (23:47 -0800)
mod/follow.php

index a90ae3f5127b7239994520655ed22d647b3b614f..62ba2585c28891ff90852698df3ae12628f73118 100644 (file)
@@ -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