make sure we use source.content when rendering events to correctly render observer related content. fix wrong media types.

This commit is contained in:
Mario
2022-05-16 20:44:53 +00:00
parent 66436ce4a2
commit c1dc16a89d
2 changed files with 12 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ class MessageFilter {
public static function evaluate($item, $incl, $excl) {
$text = prepare_text($item['body'],((isset($item['mimetype'])) ? $item['mimetype'] : 'text/x-multicode'));
$text = prepare_text($item['body'],((isset($item['mimetype'])) ? $item['mimetype'] : 'text/bbcode'));
$text = html2plain(($item['title']) ? $item['title'] . ' ' . $text : $text);
$lang = null;