mirror of
https://github.com/flarum/core.git
synced 2025-07-25 02:31:17 +02:00
Fix evaluation of post content by m.trust() (#24)
This commit is contained in:
@@ -21,7 +21,8 @@ export default function addStickyControl() {
|
||||
if (firstPost) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user