浏览代码

内容详情

wzq 5 年之前
父节点
当前提交
aba7d0edb4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/Transformers/Post/DetailTransformer.php

+ 1 - 0
app/Transformers/Post/DetailTransformer.php

@@ -51,6 +51,7 @@ class DetailTransformer extends TransformerAbstract
             'username' => subtext($post['username'], 10),
             'avatar' => $post['avatar'],
             'topic' => $topic,
+            'topic_ids' => $post['topic_ids'],
             'title' => $post['title'],
             'content' => $post['content'],
             'location' => $post['location'],