Workaround for local resource path to photo from Diaspora

This commit is contained in:
Max Kostikov 2018-11-09 10:03:58 +01:00
parent e35f5d3c93
commit 2c4bd9a3fe

View File

@ -1963,6 +1963,7 @@ function scrape_vcard($url) {
}
}
$ret['photo'] = (filter_var($ret['photo'], FILTER_VALIDATE_URL) ? $ret['photo'] : substr($ret['url'], 0, -1) . $ret['photo']);
return $ret;
}