watch.js: Let api.js do the joining of the array
authorFomafix <fomafix@googlemail.com>
Sun, 21 Jan 2018 21:35:37 +0000 (22:35 +0100)
committerFomafix <fomafix@googlemail.com>
Sun, 21 Jan 2018 21:35:37 +0000 (22:35 +0100)
Change-Id: Ie283ed3e071fe1a041f040e72cac061ebc3209d0

resources/src/mediawiki/api/watch.js

index f50e59a..025c111 100644 (file)
@@ -28,7 +28,7 @@
                                {
                                        formatversion: 2,
                                        action: 'watch',
-                                       titles: Array.isArray( pages ) ? pages.join( '|' ) : String( pages )
+                                       titles: Array.isArray( pages ) ? pages : String( pages )
                                },
                                addParams
                        )