1
0
Fork 0
forked from mirror/pixelfed

Update StatusTransformer, fixes #2113

This commit is contained in:
Daniel Supernault 2020-04-16 15:18:31 -06:00
parent b479514fb6
commit eefa6e0dfd
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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,