# clanbite_social_kit_resolve_feed_request()

Resolve which feed the Social feed / composer blocks should show for the given block attributes.

Single place for context resolution, so both blocks and third-party code agree. Understands every registered feed
context (see `\Kernowdev\ClanbiteSocialKit\Social\Feed_Context_Registry`); a missing value means `home`, an unregistered one yields a null definition.

```php
clanbite_social_kit_resolve_feed_request( array $attributes, $block = null ): array
```

## Parameters

- `$attributes` (array<string, mixed>) Block attributes (`feedContext`, `feedSubjectId`, and the legacy `profileUserId`, `teamId`, `groupId`).
- `$block` (\WP_Block|null) Block instance when available (used to read player context).

## Return

`array{context: string, definition: \Kernowdev\ClanbiteSocialKit\Social\Feed_Context|null, subject: int, profile_user_id: int, team_id: int, group_id: int, viewer_id: int}` `definition` is null when the context is not registered.
