From b00c22916a0eefd464833ff6debad6f0684fad36 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sat, 9 Jan 2016 14:02:58 -0800 Subject: fix relative urls on some Diaspora profile photos --- include/network.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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) -- cgit v1.2.3