mirror of
https://github.com/friendica/friendica
synced 2024-12-23 05:20:15 +00:00
Now it works
This commit is contained in:
parent
fda30bbb1f
commit
84244b1450
1 changed files with 9 additions and 6 deletions
|
@ -129,12 +129,14 @@ class Email
|
|||
if (trim($ret['body']) == '') {
|
||||
$ret['body'] = self::messageGetPart($mbox, $uid, $struc, 0, 'plain');
|
||||
|
||||
$message = ['text' => $ret['body'], 'html' => ''];
|
||||
Hook::callAll('email_getmessage', $message, $ret);
|
||||
$message = ['text' => $ret['body'], 'html' => '', 'item' => $ret];
|
||||
Hook::callAll('email_getmessage', $message);
|
||||
$ret = $message['item'];
|
||||
$ret['body'] = $message['text'];
|
||||
} else {
|
||||
$message = ['text' => '', 'html' => $ret['body']];
|
||||
Hook::callAll('email_getmessage', $message, $ret);
|
||||
$message = ['text' => '', 'html' => $ret['body'], 'item' => $ret];
|
||||
Hook::callAll('email_getmessage', $message);
|
||||
$ret = $message['item'];
|
||||
$ret['body'] = $message['html'];
|
||||
|
||||
$ret['body'] = HTML::toBBCode($ret['body']);
|
||||
|
@ -154,8 +156,9 @@ class Email
|
|||
}
|
||||
}
|
||||
|
||||
$message = ['text' => trim($text), 'html' => trim($html)];
|
||||
Hook::callAll('email_getmessage', $message, $ret);
|
||||
$message = ['text' => trim($text), 'html' => trim($html), 'item' => $ret];
|
||||
Hook::callAll('email_getmessage', $message);
|
||||
$ret = $message['item'];
|
||||
$html = $message['html'];
|
||||
$text = $message['text'];
|
||||
|
||||
|
|
Loading…
Reference in a new issue