fix mentions at the end of a post

This is a fix for [#3746](https://github.com/diaspora/diaspora/issues/3746)