Skip to content

Node.js based forum software built for the modern web

test: add missing selectedCategory to world.yaml

Barış Soner Uşaklı779a372fc5b3
diff --git a/public/openapi/read/world.yaml b/public/openapi/read/world.yaml
index 450d49e362..d2cbe0b332 100644
--- a/public/openapi/read/world.yaml
+++ b/public/openapi/read/world.yaml
@@ -31,6 +31,9 @@ get:
properties:
bookmarks:
type: number
+ selectedCategory:
+ $ref: ../components/schemas/CategoryObject.yaml#/CategoryObject
+ nullable: true
showThumbs:
type: boolean
showTopicTools:
diff --git a/src/plugins/data.js b/src/plugins/data.js
index ba6e319e78..0078fa34b8 100644
--- a/src/plugins/data.js
+++ b/src/plugins/data.js
@@ -55,6 +55,7 @@ Data.loadPluginInfo = async function (pluginPath) {
pluginData.description = packageData.description;
pluginData.version = packageData.version;
pluginData.repository = packageData.repository;
+ pluginData.url = pluginData.url || pluginData?.repository?.url || '';
pluginData.nbbpm = packageData.nbbpm;
pluginData.path = pluginPath;
} catch (err) {