diff --git a/Cargo.lock b/Cargo.lock index ce957e2..62fa5cb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1511,7 +1511,7 @@ checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860" [[package]] name = "tron" -version = "0.2.1" +version = "0.2.2" dependencies = [ "anyhow", "async-trait", diff --git a/Cargo.toml b/Cargo.toml index da238c5..7031aaa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tron" -version = "0.2.1" +version = "0.2.2" authors = ["Christine Dodrill "] edition = "2018" repository = "https://tulpa.dev/cadey/tron" diff --git a/src/main.rs b/src/main.rs index d5a534a..ea919af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -78,7 +78,7 @@ impl Rules { #[async_trait] impl FirehoseAdaptor for Rules { async fn image_created(&self, img: Image) -> Result<()> { - let url = img.view_url; + let url = format!("https://furbooru.org/{}", img.id); log::debug!("got image {}", url); if let Some(hits) = self.check(&img.description.to_lowercase()) { let mut buf: String = String::new();