* finish task #6212.

This commit is contained in:
wangyidong
2019-08-08 10:25:03 +08:00
parent d7f0dad090
commit 2fbe7943f3
+3 -1
View File
@@ -45,9 +45,11 @@ class actionModel extends model
$action->actor = $actor;
$action->action = $actionType;
$action->date = helper::now();
$action->comment = trim(strip_tags($comment, $this->config->allowedTags));
$action->extra = $extra;
$_POST['comment'] = $comment;
$action->comment = fixer::input('post')->stripTags('comment')->get('comment');
/* Process action. */
$action = $this->loadModel('file')->processImgURL($action, 'comment', $this->post->uid);
if($autoDelete) $this->file->autoDelete($this->post->uid);