server: use clean_summary field instead of summary
This commit is contained in:
parent
19f029cb6b
commit
bd00542c28
@ -4,11 +4,12 @@ SELECT
|
|||||||
link,
|
link,
|
||||||
site,
|
site,
|
||||||
summary,
|
summary,
|
||||||
|
clean_summary,
|
||||||
title,
|
title,
|
||||||
name,
|
name,
|
||||||
homepage
|
homepage
|
||||||
FROM
|
FROM
|
||||||
post p
|
post AS p
|
||||||
JOIN feed f ON p.site = f.slug
|
INNER JOIN feed AS f ON p.site = f.slug
|
||||||
WHERE
|
WHERE
|
||||||
uid = $1
|
uid = $1
|
||||||
|
|||||||
@ -190,7 +190,7 @@ pub async fn thread(
|
|||||||
let site = r.name.unwrap_or("NO SITE".to_string());
|
let site = r.name.unwrap_or("NO SITE".to_string());
|
||||||
// TODO: remove the various places that have this as an Option
|
// TODO: remove the various places that have this as an Option
|
||||||
let link = Some(Url::parse(&r.link)?);
|
let link = Some(Url::parse(&r.link)?);
|
||||||
let mut body = r.summary.unwrap_or("NO SUMMARY".to_string());
|
let mut body = r.clean_summary.unwrap_or("NO SUMMARY".to_string());
|
||||||
let cacher = Arc::new(Mutex::new(FilesystemCacher::new(&config.slurp_cache_path)?));
|
let cacher = Arc::new(Mutex::new(FilesystemCacher::new(&config.slurp_cache_path)?));
|
||||||
let body_tranformers: Vec<Box<dyn Transformer>> = vec![
|
let body_tranformers: Vec<Box<dyn Transformer>> = vec![
|
||||||
Box::new(SlurpContents {
|
Box::new(SlurpContents {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user