Update mastoapi StatusTransformer, fix in_reply_to_id cast to string instead of int
This commit is contained in:
parent
e004915aeb
commit
6ed00c9413
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class StatusTransformer extends Fractal\TransformerAbstract
|
|||
return [
|
||||
'id' => (string) $status->id,
|
||||
'created_at' => $status->created_at->toJSON(),
|
||||
'in_reply_to_id' => $status->in_reply_to_id,
|
||||
'in_reply_to_id' => $status->in_reply_to_id ? (string) $status->in_reply_to_id : null,
|
||||
'in_reply_to_account_id' => $status->in_reply_to_profile_id,
|
||||
'sensitive' => (bool) $status->is_nsfw,
|
||||
'spoiler_text' => $status->cw_summary ?? '',
|
||||
|
|
Loading…
Reference in a new issue