This commit is contained in:
sunguangming
2024-03-04 13:03:27 +08:00
parent 4fee00e7f3
commit 9737c7f8cb
+2
View File
@@ -790,6 +790,8 @@ class story extends control
->removeIF($this->post->closedReason != 'duplicate', 'duplicateStory')
->removeIF($this->post->closedReason != 'subdivided', 'childStories')
->get();
if(strpos($this->config->{$story->type}->change->requiredFields, 'comment') !== false and !$this->post->comment) $this->send(array('result' => 'fail', 'message' => array('comment' => sprintf($this->lang->error->notempty, $this->lang->comment))));
$postData = $this->loadModel('file')->processImgURL($postData, $this->config->story->editor->close['id'], $this->post->uid);
$changes = $this->story->close($storyID, $postData);