mirror of
https://github.com/flarum/core.git
synced 2025-07-26 03:01:22 +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) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user