mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 05:37:35 +02: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:
|
properties:
|
||||||
bookmarks:
|
bookmarks:
|
||||||
type: number
|
type: number
|
||||||
|
selectedCategory:
|
||||||
|
$ref: ../components/schemas/CategoryObject.yaml#/CategoryObject
|
||||||
|
nullable: true
|
||||||
showThumbs:
|
showThumbs:
|
||||||
type: boolean
|
type: boolean
|
||||||
showTopicTools:
|
showTopicTools:
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ Data.loadPluginInfo = async function (pluginPath) {
|
|||||||
pluginData.description = packageData.description;
|
pluginData.description = packageData.description;
|
||||||
pluginData.version = packageData.version;
|
pluginData.version = packageData.version;
|
||||||
pluginData.repository = packageData.repository;
|
pluginData.repository = packageData.repository;
|
||||||
|
pluginData.url = pluginData.url || pluginData?.repository?.url || '';
|
||||||
pluginData.nbbpm = packageData.nbbpm;
|
pluginData.nbbpm = packageData.nbbpm;
|
||||||
pluginData.path = pluginPath;
|
pluginData.path = pluginPath;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user