posts.js: fix cut for multiple posts