Przeglądaj źródła

Update StatusTransformer

Daniel Supernault 6 lat temu
rodzic
commit
e590db3f32
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      app/Transformer/Api/StatusTransformer.php

+ 2 - 0
app/Transformer/Api/StatusTransformer.php

@@ -43,6 +43,8 @@ class StatusTransformer extends Fractal\TransformerAbstract
             'pinned'                    => null,
 
             'pf_type'          => $status->type ?? $status->setType(),
+            'reply_count'      => $status->reply_count,
+            'comments_disabled' => $status->comments_disabled ? true : false
         ];
     }