diff --git a/api/OffsetPaginationTrait.php b/api/OffsetPaginationTrait.php index a730b72e..0f34172d 100644 --- a/api/OffsetPaginationTrait.php +++ b/api/OffsetPaginationTrait.php @@ -144,6 +144,7 @@ protected function marshallReviews(array $records, $flags) { $resource->relationships()->set($relation); if($flags & Albums::LINKS_REVIEWS_WITH_BODY) { $reviews = Engine::api(IReview::class)->getReviews($record["id"], 1, "", Engine::session()->isAuth("u"), 1); + $record["airname"] = $reviews[0]["airname"] ?? $reviews[0]["realname"]; $record["review"] = $reviews[0]["review"]; } $res = Reviews::fromRecord($record);