aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2018-11-09 10:03:58 +0100
committerMax Kostikov <max@kostikov.co>2018-11-09 10:03:58 +0100
commit2c4bd9a3fe958ee2e4695f3971bf3bf3ccf6cddb (patch)
tree0cbacc4838aa84bb755131f76ee9ca3faf37a504 /include
parente35f5d3c9384dba1fd920c9c08dba5222dbd21c6 (diff)
downloadvolse-hubzilla-2c4bd9a3fe958ee2e4695f3971bf3bf3ccf6cddb.tar.gz
volse-hubzilla-2c4bd9a3fe958ee2e4695f3971bf3bf3ccf6cddb.tar.bz2
volse-hubzilla-2c4bd9a3fe958ee2e4695f3971bf3bf3ccf6cddb.zip
Workaround for local resource path to photo from Diaspora
Diffstat (limited to 'include')
-rw-r--r--include/network.php1
1 files changed, 1 insertions, 0 deletions
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;
}