Explorar o código

Update StatusTransformer.php

Shlee %!s(int64=3) %!d(string=hai) anos
pai
achega
af3d313047
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Transformer/Api/StatusTransformer.php

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

@@ -56,7 +56,7 @@ class StatusTransformer extends Fractal\TransformerAbstract
 			'mentions'                  => StatusMentionService::get($status->id),
 			'pf_type'                   => $status->type ?? $status->setType(),
 			'reply_count'               => (int) $status->reply_count,
-			'comments_disabled'         => $status->comments_disabled ? true : false,
+			'comments_disabled'         => (bool)$status->comments_disabled,
 			'thread'                    => false,
 			'replies'                   => [],
 			'parent'                    => [],