aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-09-16 10:51:28 +0000
committerMario <mario@mariovavti.com>2023-09-16 13:26:38 +0200
commit24d862c1bcf3077fc06f6444309a2f9ec9f03e35 (patch)
tree55eb7a22fb69508ed160fbd41519f662845757e0
parenta1e583129fe31805b3a596d3ccef3f59fa0226ab (diff)
downloadvolse-hubzilla-24d862c1bcf3077fc06f6444309a2f9ec9f03e35.tar.gz
volse-hubzilla-24d862c1bcf3077fc06f6444309a2f9ec9f03e35.tar.bz2
volse-hubzilla-24d862c1bcf3077fc06f6444309a2f9ec9f03e35.zip
fix regression in jsonld_document_loader()
(cherry picked from commit 3708c1ac8c60c500e3aa15450380fe657f1dd24a)
-rw-r--r--include/network.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/network.php b/include/network.php
index 79c28de01..b8570d4f4 100644
--- a/include/network.php
+++ b/include/network.php
@@ -2092,9 +2092,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);
@@ -2111,8 +2109,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');