mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Recompile JS
This commit is contained in:
parent
6138794712
commit
8b5f1839b6
8
extensions/sticky/js/forum/dist/extension.js
vendored
8
extensions/sticky/js/forum/dist/extension.js
vendored
|
@ -86,15 +86,11 @@ System.register('flarum/sticky/addStickyExcerpt', ['flarum/extend', 'flarum/comp
|
|||
extend(DiscussionListItem.prototype, 'infoItems', function (items) {
|
||||
var discussion = this.props.discussion;
|
||||
|
||||
if (discussion.isSticky()) {
|
||||
if (discussion.isSticky() && !this.props.params.q) {
|
||||
var startPost = discussion.startPost();
|
||||
|
||||
if (startPost) {
|
||||
var excerpt = m(
|
||||
'span',
|
||||
null,
|
||||
truncate(startPost.contentPlain(), 200)
|
||||
);
|
||||
var excerpt = truncate(startPost.contentPlain(), 175);
|
||||
|
||||
items.add('excerpt', excerpt, -100);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user