diff options
author | zotlabs <mike@macgirvin.com> | 2018-04-22 22:10:15 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-04-22 22:10:15 -0700 |
commit | 66d72d9870ac004784484857e9369238f6cae1a9 (patch) | |
tree | 37ad892c533a772c1b225d2bcc9904fa80a69aff /Zotlabs | |
parent | 11624cd83ed4ce35fae46dece65931bb989912c5 (diff) | |
download | volse-hubzilla-66d72d9870ac004784484857e9369238f6cae1a9.tar.gz volse-hubzilla-66d72d9870ac004784484857e9369238f6cae1a9.tar.bz2 volse-hubzilla-66d72d9870ac004784484857e9369238f6cae1a9.zip |
as_fetch depends on the pubcrawl plugin, but is referenced in core. Ensure that it doesn't chuck a wobbly if the function isn't found. This is undergoing significant revision for zot6 so this action is considered a short-term workaround until that work work stabilises.
Diffstat (limited to 'Zotlabs')
-rw-r--r-- | Zotlabs/Web/HTTPSig.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Web/HTTPSig.php b/Zotlabs/Web/HTTPSig.php index 255511ede..df66ecf5c 100644 --- a/Zotlabs/Web/HTTPSig.php +++ b/Zotlabs/Web/HTTPSig.php @@ -195,7 +195,9 @@ class HTTPSig { if($x && $x[0]['xchan_pubkey']) { return ($x[0]['xchan_pubkey']); } - $r = as_fetch($id); + + if(function_exists('as_fetch')) + $r = as_fetch($id); if($r) { $j = json_decode($r,true); |