Node.js based forum software built for the modern web
fix: remove reference to hallucinated schema, fix hideSave definitions
Julian Lamef2a17f25d99
diff --git a/public/openapi/read/admin/federation/analytics.yaml b/public/openapi/read/admin/federation/analytics.yamlindex 1ee17b1f63..227b75bf42 100644--- a/public/openapi/read/admin/federation/analytics.yaml+++ b/public/openapi/read/admin/federation/analytics.yaml@@ -9,12 +9,14 @@ get:required: falseschema:type: string+ example: example.org- name: termin: querydescription: The time period to retrieve analytics for (daily or hourly)required: falseschema:type: string+ example: hourlyresponses:"200":description: Analytics data@@ -33,13 +35,16 @@ get:received:type: arrayitems:- $ref: ../../../components/schemas/admin/stats.yaml#/StatsArray+ type: numberreceivedErr:type: arrayitems:- $ref: ../../../components/schemas/admin/stats.yaml#/StatsArray+ type: numbersent:type: arrayitems:- $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#/CommonPropsdiff --git a/public/openapi/read/admin/federation/errors.yaml b/public/openapi/read/admin/federation/errors.yamlindex 7eac1285e5..2bf7a1895b 100644--- a/public/openapi/read/admin/federation/errors.yaml+++ b/public/openapi/read/admin/federation/errors.yaml@@ -13,11 +13,17 @@ get:properties:title:type: string- hideSave:- type: boolean- description: A flag to instruct the template engine to hide the save buttonerrors:type: arrayitems:- $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#/CommonPropsdiff --git a/src/controllers/admin/federation.js b/src/controllers/admin/federation.jsindex 29be877ec5..95cfedc5e5 100644--- a/src/controllers/admin/federation.js+++ b/src/controllers/admin/federation.js@@ -104,7 +104,6 @@ federationController.errors = async function (req, res) {res.render('admin/federation/errors', {title: '[[admin/menu:federation/errors]]',- hideSave: 1,errors,});};