From 484bb509c6518193a7215bafce67ebe4e6b7243d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 10 Nov 2019 20:53:37 -0700 Subject: [PATCH 1/2] Update StatusTransformer --- app/Transformer/Api/StatusTransformer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Transformer/Api/StatusTransformer.php b/app/Transformer/Api/StatusTransformer.php index 99d7c4a47..7d73c5f6a 100644 --- a/app/Transformer/Api/StatusTransformer.php +++ b/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, ]; } From ecaa20e40b8a744db9c27af5f76dce009324b447 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 10 Nov 2019 20:54:35 -0700 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ef6a45c3..4fc084d24 100644 --- a/CHANGELOG.md +++ b/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