diff options
author | Max Kostikov <max@kostikov.co> | 2018-11-09 10:03:58 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2018-11-09 10:03:58 +0100 |
commit | 2c4bd9a3fe958ee2e4695f3971bf3bf3ccf6cddb (patch) | |
tree | 0cbacc4838aa84bb755131f76ee9ca3faf37a504 | |
parent | e35f5d3c9384dba1fd920c9c08dba5222dbd21c6 (diff) | |
download | volse-hubzilla-2c4bd9a3fe958ee2e4695f3971bf3bf3ccf6cddb.tar.gz volse-hubzilla-2c4bd9a3fe958ee2e4695f3971bf3bf3ccf6cddb.tar.bz2 volse-hubzilla-2c4bd9a3fe958ee2e4695f3971bf3bf3ccf6cddb.zip |
Workaround for local resource path to photo from Diaspora
-rw-r--r-- | include/network.php | 1 |
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; } |