From 75808bc9267bebd3f1ab853e9af753003e3ef70a Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 18 Sep 2024 22:23:31 +0200 Subject: [PATCH] fix(cli): fetch cmd i have a ton of stuff pending locally so language server throws a ton of errors, hopefully this compiles? --- upub/cli/src/fetch.rs | 2 +- upub/cli/src/lib.rs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/upub/cli/src/fetch.rs b/upub/cli/src/fetch.rs index b31d7c9..e541cd6 100644 --- a/upub/cli/src/fetch.rs +++ b/upub/cli/src/fetch.rs @@ -23,7 +23,7 @@ pub async fn fetch(ctx: upub::Context, uri: String, save: bool, actor: Option, }, /// act on remote relay actors at instance level @@ -139,8 +143,8 @@ pub async fn run(ctx: upub::Context, command: CliCommand) -> Result<(), Box Ok(faker(ctx, count as i64).await?), - CliCommand::Fetch { uri, save } => - Ok(fetch(ctx, uri, save).await?), + CliCommand::Fetch { uri, save, fetch_as } => + Ok(fetch(ctx, uri, save, fetch_as).await?), CliCommand::Relay { action } => Ok(relay(ctx, action).await?), CliCommand::Fix { likes, shares, replies } =>