Explorar o código

Merge pull request #1815 from pixelfed/staging

Staging
daniel %!s(int64=5) %!d(string=hai) anos
pai
achega
85485bba8b
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  1. 1 0
      CHANGELOG.md
  2. 2 1
      app/Transformer/Api/StatusTransformer.php

+ 1 - 0
CHANGELOG.md

@@ -42,6 +42,7 @@
 - Updated AccountTransformer, added ```local``` attribute ([d2a90f11](https://github.com/pixelfed/pixelfed/commit/d2a90f11))
 - Updated Laravel framework from v5.8 to v6.x ([3aff6de33](https://github.com/pixelfed/pixelfed/commit/3aff6de33))
 - Updated FollowerController to fix bug affecting private profiles ([a429d961](https://github.com/pixelfed/pixelfed/commit/a429d961))
+- Updated StatusTransformer, added ```local``` attribute ([484bb509](https://github.com/pixelfed/pixelfed/commit/484bb509))
 
 ## Deprecated
     

+ 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,
         ];
     }