mirror of https://github.com/pixelfed/pixelfed
perf: fix N+1 queries; fix ComposeController lint and test namespace
Performance: - TrendingHashtagService: batch-load hashtags with whereIn/keyBy instead of Hashtag::find() per trending row. - DirectMessageController: eager-load status.media and read the in-memory collection instead of firstMedia() issuing a query per DM message. - GroupsSearchController: batch Profile/Follower/GroupInvitation lookups with whereIn instead of per-invitee queries. Lint/tests: - ComposeController: whitespace formatting (Pint). - ComposeControllerTest: correct App\User to App\Models\User, fixing the larastan class.notFound error and import ordering. Full suite: 547 passed. Pint and PHPStan clean.pull/6976/head
parent
d9817840c1
commit
b52c3d7659
Loading…
Reference in New Issue