fix image links

This commit is contained in:
Cadey Ratio 2020-07-05 13:27:02 -04:00
parent 79429c0694
commit da022ed7b9
3 changed files with 3 additions and 3 deletions

2
Cargo.lock generated
View File

@ -1511,7 +1511,7 @@ checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860"
[[package]] [[package]]
name = "tron" name = "tron"
version = "0.2.1" version = "0.2.2"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "tron" name = "tron"
version = "0.2.1" version = "0.2.2"
authors = ["Christine Dodrill <me@christine.website>"] authors = ["Christine Dodrill <me@christine.website>"]
edition = "2018" edition = "2018"
repository = "https://tulpa.dev/cadey/tron" repository = "https://tulpa.dev/cadey/tron"

View File

@ -78,7 +78,7 @@ impl Rules {
#[async_trait] #[async_trait]
impl FirehoseAdaptor for Rules { impl FirehoseAdaptor for Rules {
async fn image_created(&self, img: Image) -> Result<()> { 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); log::debug!("got image {}", url);
if let Some(hits) = self.check(&img.description.to_lowercase()) { if let Some(hits) = self.check(&img.description.to_lowercase()) {
let mut buf: String = String::new(); let mut buf: String = String::new();