recon/peertube-plugin/peertube-plugin-recon-domains/main.js
Matt c04ccc5011 Fix plugin for PeerTube v8.0.2 validation
PeerTube v8.0.2 requires a "bugs" field in package.json and an
unregister() export in main.js. Add both to pass plugin validation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-28 01:55:47 +00:00

32 lines
778 B
JavaScript

async function register ({ videoCategoryManager }) {
const reconDomains = {
100: 'Agriculture & Livestock',
101: 'Civil Organization',
102: 'Communications',
103: 'Food Systems',
104: 'Foundational Skills',
105: 'Logistics',
106: 'Medical',
107: 'Navigation',
108: 'Operations',
109: 'Power Systems',
110: 'Preservation & Storage',
111: 'Security',
112: 'Shelter & Construction',
113: 'Technology',
114: 'Tools & Equipment',
115: 'Vehicles',
116: 'Water Systems',
117: 'Wilderness Skills'
}
for (const [id, label] of Object.entries(reconDomains)) {
videoCategoryManager.addConstant(parseInt(id), label)
}
}
async function unregister () {
return
}
module.exports = { register, unregister }