fix potential divide by 0 in setting popularities
Merge branch 'master' of https://github.com/jackrr/obiechat into production