fix: remove reference to hallucinated schema, fix hideSave definitions

This commit is contained in:
Julian Lam
2026-04-09 16:14:46 -04:00
parent 28e173d639
commit ef2a17f25d
3 changed files with 18 additions and 8 deletions

View File

@@ -9,12 +9,14 @@ get:
required: false
schema:
type: string
example: example.org
- name: term
in: query
description: The time period to retrieve analytics for (daily or hourly)
required: false
schema:
type: string
example: hourly
responses:
"200":
description: Analytics data
@@ -33,13 +35,16 @@ get:
received:
type: array
items:
$ref: ../../../components/schemas/admin/stats.yaml#/StatsArray
type: number
receivedErr:
type: array
items:
$ref: ../../../components/schemas/admin/stats.yaml#/StatsArray
type: number
sent:
type: array
items:
$ref: ../../../components/schemas/admin/stats.yaml#/StatsArray
type: number
hideSave:
type: number
description: A flag to instruct the template engine to hide the save button
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps

View File

@@ -13,11 +13,17 @@ get:
properties:
title:
type: string
hideSave:
type: boolean
description: A flag to instruct the template engine to hide the save button
errors:
type: array
items:
$ref: ../../../components/schemas/admin/error.yaml#/ErrorObject
type: object
properties:
id:
type: string
body:
type: string
stack:
type: string
hostname:
type: string
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps

View File

@@ -104,7 +104,6 @@ federationController.errors = async function (req, res) {
res.render('admin/federation/errors', {
title: '[[admin/menu:federation/errors]]',
hideSave: 1,
errors,
});
};