diff --git a/static/js/posts.js b/static/js/posts.js index e96aa79..dfc30b7 100644 --- a/static/js/posts.js +++ b/static/js/posts.js @@ -190,7 +190,8 @@ var movePostHTML = function(postID) { } var createPostEl = function(post, owned) { var $post = document.createElement('div'); - var title = (post.title || post.id); + let p = H.createPost(post.id, "", post.body) + var title = (post.title || p.title || post.id); title = title.replace(/Sync error: ' + post.error + '
'; } if (post.summary) { + // TODO: switch to using p.summary, after ensuring it matches summary generated on the backend. $post.innerHTML += '' + post.summary.replace(/'; } else if (post.body) { var preview;