aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-04-22 22:10:15 -0700
committerzotlabs <mike@macgirvin.com>2018-04-22 22:10:15 -0700
commit66d72d9870ac004784484857e9369238f6cae1a9 (patch)
tree37ad892c533a772c1b225d2bcc9904fa80a69aff /Zotlabs/Web
parent11624cd83ed4ce35fae46dece65931bb989912c5 (diff)
downloadvolse-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/Web')
-rw-r--r--Zotlabs/Web/HTTPSig.php4
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);