mirror of
https://github.com/YGGverse/rssto.git
synced 2026-04-01 09:35:28 +00:00
implement local image features
This commit is contained in:
parent
3e94399ccb
commit
e86b241ee6
6 changed files with 52 additions and 21 deletions
|
|
@ -171,7 +171,10 @@ fn crawl(tx: &mut mysql::Transaction, channel_config: &config::Channel) -> Resul
|
|||
}
|
||||
};
|
||||
let content_image_id = tx.insert_content_image(content_id, image_id)?;
|
||||
debug!("Add content image relationship #{content_image_id}")
|
||||
debug!("Add content image relationship #{content_image_id}");
|
||||
let uri = format!("/image/{image_id}");
|
||||
tx.replace_content_description(content_id, src, &uri)?;
|
||||
debug!("Replace content image in description from `{src}` to `{uri}`")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue