Now it is possible to search for @http://profile...

This commit is contained in:
Michael Vogel 2015-11-08 15:00:52 +01:00
parent e12b0d27bb
commit 7de6f23f4a

View file

@ -33,7 +33,8 @@ function dirfind_content(&$a, $prefix = "") {
if(strpos($search,'@') === 0) {
$search = substr($search,1);
if (valid_email($search)) {
if ((valid_email($search) AND validate_email($search)) OR
(substr(normalise_link($search), 0, 7) == "http://")) {
$user_data = probe_url($search);
$discover_user = (in_array($user_data["network"], array(NETWORK_DFRN, NETWORK_OSTATUS, NETWORK_DIASPORA)));
}