fix crash if socket.handshake is null
#2308 check if latest is greater by semver
make images in manage/flags responsive
if a post is purged, remove it from flagged posts as well
fix empty pages
fix sort by vote insertion
tmp error check