diff --git a/routes/make.js b/routes/make.js index 16258a4..91d1a83 100644 --- a/routes/make.js +++ b/routes/make.js @@ -35,7 +35,9 @@ module.exports = function( makeCtor, env ) { if ( field in body ) { // arrays need to be concatenated to avoid overwriting elements in the original. if ( Array.isArray( make[ field ] ) ) { - make[ field ] = make[ field ].concat( body[ field ] ); + make[ field ] = make[ field ].concat( body[ field ] ).filter(function( tag, pos, arr ) { + return arr.indexOf( tag ) === pos; + }); } else { make[ field ] = body[ field ]; }