# Look up a viewer's image page by page, not through every trashed copy · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/65a460b13e3043a4a5d7be7eb39cf746ec5ca8ab)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 65a460b13e3043a4a5d7be7eb39cf746ec5ca8ab

Requested commit: 65a460b13e3043a4a5d7be7eb39cf746ec5ca8ab

Commit: 65a460b13e3043a4a5d7be7eb39cf746ec5ca8ab

Tree: 81741d42522f70583e4495ca7bbb444d5147bb41

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Look up a viewer's image page by page, not through every trashed copy

Astra's review of #366: isAssetShownOnLivePage read every reference to the
picture, and the trash can hold any number of pages that showed it. A new
index ending in pageId answers "does this page show it" in one read, so the
check reads one row per live page and never the trash. Additive index; no
data or client change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

```

## Parents

- [d8978e6c1df766ccbdd5fcb567f5e88dacf2f1b0](https://git.cafe/dara/icarus/commit/d8978e6c1df766ccbdd5fcb567f5e88dacf2f1b0?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/65a460b13e3043a4a5d7be7eb39cf746ec5ca8ab?format=markdown)
