Przeglądaj źródła

Update StatusTransformer

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

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

@@ -47,7 +47,8 @@ class StatusTransformer extends Fractal\TransformerAbstract
             'thread'                    => false,
             'replies'                   => [],
             'parent'                    => [],
-            'place'                     => $status->place
+            'place'                     => $status->place,
+            'local'                     => (bool) $status->local,
         ];
     }