From 74441f2f00fe1a8be4930879822fb6ef6040896c Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Sat, 23 Jan 2021 21:38:03 +0100 Subject: Don't fetch profile photos from own hub --- Zotlabs/Lib/Libzot.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Lib/Libzot.php') diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 150a6af03..ee1f54ec8 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -795,7 +795,10 @@ class Libzot { dbesc($xchan_hash) ); if ($local) { - $ph = z_fetch_url($arr['photo']['url'], true); + + $ph = false; + if (strpos($arr['photo']['url'], z_root()) === false) + $ph = z_fetch_url($arr['photo']['url'], true); if ($ph['success']) { $hash = import_channel_photo($ph['body'], $arr['photo']['type'], $local[0]['channel_account_id'], $local[0]['channel_id']); -- cgit v1.2.3