Recompile JS

This commit is contained in:
Toby Zerner 2018-02-04 12:54:41 +10:30
parent 6138794712
commit 8b5f1839b6

View File

@ -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);
}