use wcf\data\IMessageInlineEditorAction;
use wcf\data\IMessageQuoteAction;
use wcf\system\bbcode\BBCodeParser;
+use wcf\system\bbcode\PreParser;
use wcf\system\exception\PermissionDeniedException;
use wcf\system\exception\UserInputException;
use wcf\system\message\censorship\Censorship;
* @see wcf\data\IMessageQuickReply::validateQuickReply()
*/
public function validateQuickReply() {
+ QuickReplyManager::getInstance()->setAllowedBBCodes(explode(',', WCF::getSession()->getPermission('user.message.allowedBBCodes')));
QuickReplyManager::getInstance()->validateParameters($this, $this->parameters, 'wcf\data\conversation\Conversation');
}
public function save() {
$messageEditor = new ConversationMessageEditor($this->message);
$messageEditor->update(array(
- 'message' => $this->parameters['data']['message']
+ 'message' => PreParser::getInstance()->parse($this->parameters['data']['message'], explode(',', WCF::getSession()->getPermission('user.message.allowedBBCodes')))
));
// load new message