Skip to content

Commit

Permalink
Fix evaluation of post content by m.trust() (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 authored Jan 22, 2021
1 parent 62a74d2 commit 7ebd304
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/src/forum/addStickyExcerpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
});
Expand Down

0 comments on commit 7ebd304

Please # to comment.