aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-09-16 10:51:28 +0000
committerMario <mario@mariovavti.com>2023-09-16 10:51:28 +0000
commit3708c1ac8c60c500e3aa15450380fe657f1dd24a (patch)
treee9cd3e1ab48262eecb82ac1f3c811df88aa01f4c /include/network.php
parentdf60be423ab1daf3ab558c9d452dbe68c1a184b1 (diff)
downloadvolse-hubzilla-3708c1ac8c60c500e3aa15450380fe657f1dd24a.tar.gz
volse-hubzilla-3708c1ac8c60c500e3aa15450380fe657f1dd24a.tar.bz2
volse-hubzilla-3708c1ac8c60c500e3aa15450380fe657f1dd24a.zip
fix regression in jsonld_document_loader()
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/network.php b/include/network.php
index ec3474a41..c95ae90a1 100644
--- a/include/network.php
+++ b/include/network.php
@@ -2093,9 +2093,7 @@ function jsonld_document_loader($url) {
if (file_exists($filename) && filemtime($filename) > time() - (12 * 60 * 60)) {
logger('loading ' . $filename . ' from recent cache');
-
- $doc->document = file_get_contents($filename);
- return $doc;
+ return file_get_contents($filename);
}
$r = jsonld_default_document_loader($url);
@@ -2112,8 +2110,7 @@ function jsonld_document_loader($url) {
if (file_exists($filename)) {
logger('loading ' . $filename . ' from longterm cache');
- $doc->document = file_get_contents($filename);
- return $doc;
+ return file_get_contents($filename);
}
else {
logger($filename . ' does not exist and cannot be loaded');