mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-25 22:00:35 +01:00
test: add missing selectedCategory to world.yaml
fix url of plugins that are missing it in plugin.json and look for repository.url for backup
This commit is contained in:
@@ -31,6 +31,9 @@ get:
|
||||
properties:
|
||||
bookmarks:
|
||||
type: number
|
||||
selectedCategory:
|
||||
$ref: ../components/schemas/CategoryObject.yaml#/CategoryObject
|
||||
nullable: true
|
||||
showThumbs:
|
||||
type: boolean
|
||||
showTopicTools:
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user