Skip to main content

fill_as

Function fill_as 

Source
pub(crate) async fn fill_as(
    state: &AppState,
    block_id: &str,
    entry: &str,
    profile: &str,
    actor: &str,
    shown: Option<(i64, String, i64)>,
    reason: &str,
    keep_focus: bool,
) -> Result<(String, bool), String>
Expand description

Type sign-in entry of profile into pane block_id’s page, if the page still shows a form for the site it is saved for, and record it as actor’s. Gives the site and whether a user name field was filled; never a value. shown: for an agent’s sign-in, the entry’s created_at, site and updated_at the person approved. Nothing is typed if the entry was made again with its id, or edited (its site, or who it is shared with, included), while they were asked.