check if tids and uids array array before calling async
Merge branch 'master' of https://github.com/designcreateplay/NodeBB