This commit is contained in:
joyqi 2017-09-28 13:05:51 +08:00
parent b1c0185d85
commit eaa7d28823

View File

@ -313,9 +313,10 @@ class Widget_Feedback extends Widget_Abstract_Comments implements Widget_Interfa
/** 检查ip评论间隔 */
if (!$this->user->pass('editor', true) && $this->_content->authorId != $this->user->uid &&
$this->options->commentsPostIntervalEnable) {
$this->options->commentsPostIntervalEnable) {
$latestComment = $this->db->fetchRow($this->db->select('created')->from('table.comments')
->where('cid = ?', $this->_content->cid)
->where('cid = ? AND ip = ?', $this->_content->cid, $this->request->getIp())
->order('created', Typecho_Db::SORT_DESC)
->limit(1));