Make some changes to facilitate updates to mentions extension

This commit is contained in:
Toby Zerner 2015-08-06 13:16:53 +09:30
parent 6f4d7a36b6
commit 7f82bc8251
3 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,7 @@ export default class PostPreview extends Component {
view() {
const post = this.props.post;
const user = post.user();
const excerpt = highlight(post.contentPlain(), this.props.highlight, 200);
const excerpt = highlight(post.contentPlain(), this.props.highlight, 300);
return (
<a className="PostPreview" href={app.route.post(post)} config={m.route} onclick={this.props.onclick}>

View File

@ -211,6 +211,7 @@ class PostStream extends mixin(Component, evented) {
attrs.config = fadeIn;
attrs['data-time'] = time.toISOString();
attrs['data-number'] = post.number();
attrs['data-id'] = post.id();
// If the post before this one was more than 4 hours ago, we will
// display a 'time gap' indicating how long it has been in between

View File

@ -26,7 +26,7 @@ class ShowAction extends SerializeResourceAction
'user.groups' => true,
'editUser' => true,
'hideUser' => true,
'discussion' => false
'discussion' => true
];
/**