From 2c4bd9a3fe958ee2e4695f3971bf3bf3ccf6cddb Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Fri, 9 Nov 2018 10:03:58 +0100 Subject: Workaround for local resource path to photo from Diaspora --- include/network.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/network.php b/include/network.php index d37da05f7..baa8ec40d 100644 --- a/include/network.php +++ b/include/network.php @@ -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; } -- cgit v1.2.3