aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-01-23 21:38:03 +0100
committerMax Kostikov <max@kostikov.co>2021-01-23 21:38:03 +0100
commit74441f2f00fe1a8be4930879822fb6ef6040896c (patch)
treeddcb7d45193b49b107d9ec4f0a490c7fa0fea302 /Zotlabs/Lib
parentecf2e4e0ee53547ad14fd6b2fae0d7966ba50d97 (diff)
downloadvolse-hubzilla-74441f2f00fe1a8be4930879822fb6ef6040896c.tar.gz
volse-hubzilla-74441f2f00fe1a8be4930879822fb6ef6040896c.tar.bz2
volse-hubzilla-74441f2f00fe1a8be4930879822fb6ef6040896c.zip
Don't fetch profile photos from own hub
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Libzot.php5
1 files changed, 4 insertions, 1 deletions
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']);