diff options
author | Max Kostikov <max@kostikov.co> | 2021-01-23 21:38:03 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2021-01-23 21:38:03 +0100 |
commit | 74441f2f00fe1a8be4930879822fb6ef6040896c (patch) | |
tree | ddcb7d45193b49b107d9ec4f0a490c7fa0fea302 | |
parent | ecf2e4e0ee53547ad14fd6b2fae0d7966ba50d97 (diff) | |
download | volse-hubzilla-74441f2f00fe1a8be4930879822fb6ef6040896c.tar.gz volse-hubzilla-74441f2f00fe1a8be4930879822fb6ef6040896c.tar.bz2 volse-hubzilla-74441f2f00fe1a8be4930879822fb6ef6040896c.zip |
Don't fetch profile photos from own hub
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 5 |
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']); |