diff options
author | Mario <mario@mariovavti.com> | 2021-01-24 19:55:50 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-24 19:55:50 +0000 |
commit | e486442eb1fdda0c4efa7eafc6d876b3c2c4b0ea (patch) | |
tree | 6069feeaca13ff6369a8fead9e047f2471cf3a04 /Zotlabs | |
parent | 2035828042e50f2c23f55d80b19fb898b170e6e5 (diff) | |
parent | 6b0c61ac6bf45993f5d89b976c4d11c7e287aa38 (diff) | |
download | volse-hubzilla-e486442eb1fdda0c4efa7eafc6d876b3c2c4b0ea.tar.gz volse-hubzilla-e486442eb1fdda0c4efa7eafc6d876b3c2c4b0ea.tar.bz2 volse-hubzilla-e486442eb1fdda0c4efa7eafc6d876b3c2c4b0ea.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs')
-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']); |