summaryrefslogtreecommitdiff
path: root/pages/api/docs.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/api/docs.php')
-rw-r--r--pages/api/docs.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/pages/api/docs.php b/pages/api/docs.php
index 3d11831..a60a6e6 100644
--- a/pages/api/docs.php
+++ b/pages/api/docs.php
@@ -22,6 +22,7 @@ if (isset($select)) {
if ($json_object["content"]) $data["contents"] = $json_object["content"];
if ($json_object["name"]) $data["name"] = $json_object["name"];
+if ($json_object["explicit"]) $data["nsfw"] = $json_object["explicit"];
if ($json_object["category"]) $data["category"] = trim($json_object["category"]) !== "" && trim($json_object["category"]) !== "Unsorted" && trim($json_object["category"]) !== "unsorted" && trim($json_object["category"]) !== "/no" && trim($json_object["category"]) !== "Unsort" && trim($json_object["category"]) !== "unsort" ? $json_object["category"] : null;
$data["last"]["date"] = time();