patch_feed asks for the subscription twice #163

Closed
opened 2026-10-08 18:36:27 -07:00 by rays · 1 comment
Owner

Found in a code audit on 2026-10-09.

patch_feed (src/web.rs:1560-1565) asks the database for your subscription to see whether there is one, then asks again for it with a fallback for none, which can never run. One if let Some(mut mine) does both.

Found in a code audit on 2026-10-09. `patch_feed` (`src/web.rs:1560-1565`) asks the database for your subscription to see whether there is one, then asks again for it with a fallback for none, which can never run. One `if let Some(mut mine)` does both.
rays added the enhancement label 2026-10-08 18:36:27 -07:00
Author
Owner

Done in 2de5f81: one if-let in place of the two lookups. Deployed as 0.10.3-dev on 2026-10-09.

Done in 2de5f81: one if-let in place of the two lookups. Deployed as 0.10.3-dev on 2026-10-09.
rays closed this issue 2026-10-08 18:58:49 -07:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#163