Updated settings.js to get the logged in user properly
Sorted posts properly in getpostsfromids function