prevent duplicated owners in metadata amendments

This commit is contained in:
ansuz
2019-08-21 12:24:12 +02:00
parent a3a7bcbe35
commit 1c37ec7aee
2 changed files with 14 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
var Meta = module.exports;
var deduplicate = require("./deduplicate");
/* Metadata fields:
* channel <STRING>
@@ -64,7 +66,7 @@ commands.RESET_OWNERS = function (meta, args) {
}
// overwrite the existing owners with the new one
meta.owners = args;
meta.owners = deduplicate(args);
};
commands.UPDATE_EXPIRATION = function () {