prevent duplicated owners in metadata amendments
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user