Browse Source

Update StatusTransformer, fixes #2113

Daniel Supernault 5 years ago
parent
commit
eefa6e0dfd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Transformer/Api/Mastodon/v1/StatusTransformer.php

+ 2 - 2
app/Transformer/Api/Mastodon/v1/StatusTransformer.php

@@ -31,8 +31,8 @@ class StatusTransformer extends Fractal\TransformerAbstract
             'replies_count'             => 0,
             'reblogs_count'             => $status->reblogs_count ?? 0,
             'favourites_count'          => $status->likes_count ?? 0,
-            'favourited'                => false,
-            'reblogged'                 => false,
+            'reblogged'                 => $status->shared(),
+            'favourited'                => $status->liked(),
             'muted'                     => false,
             'bookmarked'                => false,
             'pinned'                    => false,