# Data_Access::query_home_feed()

Home feed: posts from self + accepted friends.

Authors are limited to the viewer's circle; each post must be visible to the viewer
(own posts, or public / friends visibility — friends-only from circle members applies).

Includes activity posts (team_created, friendship_accepted) even if they have a team_id,
since those are user-centric activities that should appear in the home feed.

```php
query_home_feed( int $viewer_id, int $page, int $per_page ): array
```

## Parameters

- `$viewer_id` (int) Logged-in user.
- `$page` (int) Page (1-based).
- `$per_page` (int) Per page (max 50).

## Return

`array{rows: object[], total: int}`
