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.

This commit is contained in:
zotlabs 2018-04-22 22:10:15 -07:00
parent 11624cd83e
commit 66d72d9870

View File

@ -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);