Skip to main content

mark_starred

Function mark_starred 

Source
pub async fn mark_starred(
    pool: &SqlitePool,
    did: &str,
    entry_id: i64,
    starred: bool,
) -> Result<bool>
Expand description

Star/unstar a single entry for a DID (upsert, preserving read).

AUTHORIZED per-DID like mark_read: only touches an entry the caller subscribes to. Returns true if a row was written, false if did does not subscribe (→ 404 at the web layer).