pub async fn subscribed_feed_ids(
pool: &SqlitePool,
did: &str,
) -> Result<Vec<i64>>Expand description
The feed ids a did currently subscribes to (its sub_ref rows).
Not bounded by max_subs_per_did. This comment used to claim it was, and
callers leaned on that: the cap is enforced on the ADD and OPML paths only,
never on read, and sub_ref is rebuilt from whatever the PDS returns — which
any client can write to, bounded only by the list-pages ceiling at 20,000
records. A claim in a comment is not a bound.
Callers must therefore not assume a small result. The one that cared — the
list views’ scope filter — no longer does: it passes the whole set as a
single json_each bind rather than one SQL placeholder per feed.