btford/angular-express-blog — pull request #15 by georules (2014-06-25 16:31:16+00:00)
Title: protects the server from crashing when text is undefined, due to substr ...

...call

server will crash if the post has no text, as post.text will be undefined and substr is called on it.