fix image links
This commit is contained in:
parent
79429c0694
commit
da022ed7b9
|
@ -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",
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue