Browse Source

Metadata should be an object.

pull/1806/head
Michael Vogel 6 years ago
parent
commit
e60456fb66
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mod/nodeinfo.php

+ 1
- 1
mod/nodeinfo.php View File

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