delete from trending

fixes #176
This commit is contained in:
Claude 2014-09-29 17:08:12 +02:00
parent dad91e16f2
commit e3d4810cf5

View File

@ -622,8 +622,7 @@ class Pastes extends CI_Model
if ($now > $stamp) if ($now > $stamp)
{ {
$this->db->where('id', $row['id']); $this->delete_paste($row['pid']);
$this->db->delete('pastes');
} }
} }
return; return;
@ -633,6 +632,10 @@ class Pastes extends CI_Model
{ {
$this->db->where('pid', $pid); $this->db->where('pid', $pid);
$this->db->delete('pastes'); $this->db->delete('pastes');
// delete from trending
$this->db->where('paste_id', $pid);
$this->db->delete('trending');
return; return;
} }