Skip to main content

chat

Function chat 

Source
pub async fn chat(
    st: &AppState,
    me: &Actor,
    action: Option<&str>,
    text: Option<&str>,
    context: &Value,
    allow_drafts: bool,
    thread: bool,
    origin: Origin,
) -> AppResult<Run>
Expand description

A request of the web sidebar or the REST API: validates the raw fields and the page context the client sent (context, see crate::pagecontext), then asks.