aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-01-09 14:02:58 -0800
committerredmatrix <git@macgirvin.com>2016-01-09 14:02:58 -0800
commitb00c22916a0eefd464833ff6debad6f0684fad36 (patch)
tree5ba867e2c7d2b872a5ef9b090f3f2819f05a00ed /include/network.php
parent1c982315dd2d1886432eaece7c7ccb8d385640ae (diff)
downloadvolse-hubzilla-b00c22916a0eefd464833ff6debad6f0684fad36.tar.gz
volse-hubzilla-b00c22916a0eefd464833ff6debad6f0684fad36.tar.bz2
volse-hubzilla-b00c22916a0eefd464833ff6debad6f0684fad36.zip
fix relative urls on some Diaspora profile photos
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/network.php b/include/network.php
index 859a60650..e09908d31 100644
--- a/include/network.php
+++ b/include/network.php
@@ -1144,6 +1144,10 @@ function discover_by_webbie($webbie) {
dbesc($addr)
);
+ // fix relative urls
+ if($vcard['photo'] && (strpos($vcard['photo'],'http') !== 0))
+ $vcard['photo'] = $diaspora_base . '/' . $vcard['photo'];
+
/**
*
* Diaspora communications are notoriously unreliable and receiving profile update messages (indeed any messages)