/** * @see PwPostAction.dataProcessing */ public function dataProcessing(PwPostDm $postDm) { $_gtime = $this->user->getPermission('post_modify_time'); $modifyTime = $_gtime && Pw::getTime() - $this->info['created_time'] > $_gtime * 60 ? Pw::getTime() : 0; $postDm->setDisabled($this->isDisabled())->setModifyInfo($this->user->uid, $this->user->username, $this->user->ip, $modifyTime); if (($postDm = $this->runWithFilters('dataProcessing', $postDm)) instanceof PwError) { return $postDm; } $this->postDm = $postDm; return true; }
/** * @see PwPostAction.dataProcessing */ public function dataProcessing(PwPostDm $postDm) { $_gtime = $this->user->getPermission('post_modify_time'); $modifyTime = $_gtime && Pw::getTime() - $this->info['created_time'] > $_gtime * 60 ? Pw::getTime() : 0; $postDm->setDisabled($this->isDisabled())->setModifyInfo($this->user->uid, $this->user->username, $this->user->ip, $modifyTime); if (!Pw::getstatus($this->info['tpcstatus'], PwThread::STATUS_OPERATORLOG) && $this->info['created_userid'] != $this->user->uid) { $postDm->setOperatorLog(true); } if (($result = $this->checkTopictype($postDm)) !== true) { return $result; } if (($postDm = $this->runWithFilters('dataProcessing', $postDm)) instanceof PwError) { return $postDm; } $this->postDm = $postDm; return true; }