Don't greentext MFM
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
Sol Fisher Romanoff 2022-07-13 20:59:41 +03:00
parent 8861835580
commit a8f9734400
No known key found for this signature in database
GPG key ID: 9D3F2B64F2341B62

View file

@ -70,6 +70,11 @@ export default {
},
// NEVER EVER TOUCH DATA INSIDE RENDER
render () {
// Don't greentext MFM
if (this.mfm) {
this.greentext = false
}
// Pre-process HTML
const { newHtml: html } = preProcessPerLine(this.html, this.greentext)
let currentMentions = null // Current chain of mentions, we group all mentions together