* refactor: allow passing an array to topics.purge and topics.purgePostsAndTopic
deprecate action:topic.purge, add action:topics.purge with array of deleted topics
update usage of topics.purge to pass in an array
fix an issue in posts/delete where cids were passed to parseInt, caused AP cids to get saved into category:NaN
* lint
* refactor: change style
* use array of tids
* feat: remove xregexp
add slugify tests,
dont accept invalid slugs like `.`, `..`
add isSlugValid function
* test: add more tests, check slug on rename as well
use them for ban, mute and post queue depending on the type selected
if type is set to all, the reason is displayed in ban/mute and post queue
move reason label + dropdown + textarea to a partial
add acp page to create reasons
add dropdown to insert them into reason
change reason field into textarea
translate and parse reason before sending ban email
* feat: add options parameter to User.create
add emailVerification: ('send'|'verify'|'skip') param to User.create to control email verification
add a new method User.createOrQueue(). store options that will be passed to User.create() when registration is accepted in _opts
If there is no password passed to registration queue(SSO register) don't store hashedPassword
removed the isFirstUser hack in user.create, when creating the admin user in install.js passing `emailVerification: 'verify'` to immediately verify the email, same with all the hacks in tests
auth: if an SSO plugin sends back an info object, redirect to root and display the message
* refactor: make function private
* refactor: destruct return
* test: fix flag test
* test: group tests
* feat: show ssoIcon if available in register queue
* add icon/title
* fix: dont use sass-embedded on freebsd, #13867
* fix: #13715, dont reduce hardcap if usersPerPage is < 50
* fix: closes#13872, use translator.compile for notification text
so commas don't cause issues
* fix: remove bidiControls from notification.bodyShort
* refactor: move change owner call to rest api
deprecate socket method
* fix spec
* test: one more fix
* test: add 404
* test: fix tests :rage1:
* test: update test to use new method