mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: add filter:categories.copySettingsFrom
This commit is contained in:
@@ -170,6 +170,11 @@ module.exports = function (Categories) {
|
||||
if (copyParent) {
|
||||
destination.parentCid = source.parentCid || 0;
|
||||
}
|
||||
await plugins.hooks.fire('filter:categories.copySettingsFrom', {
|
||||
source: source,
|
||||
destination: destination,
|
||||
copyParent: copyParent,
|
||||
});
|
||||
|
||||
await db.setObject(`category:${toCid}`, destination);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user