mirror of
https://github.com/flarum/framework.git
synced 2025-01-22 16:33:00 +08:00
Fix evaluation of post content by m.trust() (#24)
This commit is contained in:
parent
9b65d4cbc8
commit
768fc0d653
|
@ -21,7 +21,8 @@ export default function addStickyControl() {
|
||||||
if (firstPost) {
|
if (firstPost) {
|
||||||
const excerpt = truncate(firstPost.contentPlain(), 175);
|
const excerpt = truncate(firstPost.contentPlain(), 175);
|
||||||
|
|
||||||
items.add('excerpt', m.trust(excerpt), -100);
|
// Wrapping in <div> because ItemList entries need to be vnodes
|
||||||
|
items.add('excerpt', <div>{excerpt}</div>, -100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user