Remove dead label field from status API response

The label key was only used for COVID labels which are now removed.
Drop it from both transformers and the StatusService unset list.
pull/6576/head
Your Name 3 months ago
parent ace2b962af
commit 6f643e02df

@ -73,7 +73,6 @@ class StatusService
$status['comments_disabled'],
$status['content_text'],
$status['gid'],
$status['label'],
$status['liked_by'],
$status['local'],
$status['parent'],

@ -61,7 +61,6 @@ class StatusStatelessTransformer extends Fractal\TransformerAbstract
'place' => $status->place,
'local' => (bool) $status->local,
'taggedPeople' => $taggedPeople,
'label' => ['covid' => false],
'liked_by' => LikeService::likedBy($status),
'media_attachments' => MediaService::get($status->id),
'account' => AccountService::get($status->profile_id, true),

@ -62,7 +62,6 @@ class StatusTransformer extends Fractal\TransformerAbstract
'place' => $status->place,
'local' => (bool) $status->local,
'taggedPeople' => $taggedPeople,
'label' => ['covid' => false],
'liked_by' => LikeService::likedBy($status),
'media_attachments' => MediaService::get($status->id),
'account' => ProfileService::get($status->profile_id, true),

Loading…
Cancel
Save