|
@@ -331,7 +331,8 @@ class PostController extends Controller
|
|
|
public function topicList(Request $request)
|
|
|
{
|
|
|
$fractal = new Manager();
|
|
|
- if(isset($request->category_id) && $request->category_id == -1){
|
|
|
+ $param = $request->all();
|
|
|
+ if(isset($param['category_id']) && $param['category_id'] == -1){
|
|
|
$list = $this->postRepositories->myTopicList($request->all());
|
|
|
$resource = new Collection($list, new MyTopicListTransformer());
|
|
|
$resource->setPaginator(new IlluminatePaginatorAdapter($list));
|