Revert "fixed issue where User.search in NodeBB core was returning an object instead of an array - #862"
Revert "fixed issue where User.search in NodeBB core was returning an object instead of an array - #862"

This reverts commit 214335bb02886429ddc6c641ffa477fbdced68bc.

julianlam/nodebb-plugin-mentions,exo-do/nodebb-plugin-mentions,exo-do/nodebb-plugin-mentions-exodo,drewdotpro/nodebb-plugin-mentions,barisusakli/nodebb-plugin-mentions