Browse Source

Metadata should be an object.

pull/1806/head
Michael Vogel 6 years ago
parent
commit
e60456fb66
  1. 2
      mod/nodeinfo.php

2
mod/nodeinfo.php

@ -113,7 +113,7 @@ function nodeinfo_init(&$a){
$nodeinfo["usage"]["localPosts"] = (int)get_config("nodeinfo","local_posts");
$nodeinfo["usage"]["localComments"] = (int)get_config("nodeinfo","local_comments");
$nodeinfo["usage"]["metadata"] = array();
$nodeinfo["metadata"] = new stdClass();
header('Content-type: application/json; charset=utf-8');
echo json_encode($nodeinfo, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES);

Loading…
Cancel
Save