mirror of
https://github.com/flarum/core.git
synced 2025-07-21 16:51:34 +02:00
Implement search on front end
This commit is contained in:
@@ -2,6 +2,7 @@ import Component from 'flarum/component';
|
||||
import avatar from 'flarum/helpers/avatar';
|
||||
import username from 'flarum/helpers/username';
|
||||
import humanTime from 'flarum/helpers/human-time';
|
||||
import highlight from 'flarum/helpers/highlight';
|
||||
|
||||
export default class PostPreview extends Component {
|
||||
view() {
|
||||
@@ -16,7 +17,7 @@ export default class PostPreview extends Component {
|
||||
avatar(user), ' ',
|
||||
username(user), ' ',
|
||||
humanTime(post.time()), ' ',
|
||||
post.excerpt()
|
||||
highlight(post.excerpt(), this.props.highlight)
|
||||
]));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user