This commit fix this bug https://github.com/flarum/core/issues/304.Problem not in newPost.blade.php but in this file.