diff --git a/Action.php b/Action.php index 321b075..89da646 100644 --- a/Action.php +++ b/Action.php @@ -88,6 +88,10 @@ private function posts() { $result = array(); foreach($posts as $post) { $post = $this->widget("Widget_Abstract_Contents")->push($post); + $post['tag'] = $this->db->fetchAll($this->db->select('name')->from('table.metas') + ->join('table.relationships', 'table.metas.mid = table.relationships.mid', Typecho_DB::LEFT_JOIN) + ->where('table.relationships.cid = ?', $post['cid']) + ->where('table.metas.type = ?', 'tag')); $result[] = $post; } $this->export($result);