mirror of
https://github.com/nullishamy/ferri.git
synced 2025-06-28 09:04:18 +00:00
feat: start on CRUD ops for new types
This commit is contained in:
parent
d252131e0d
commit
e6b654a0b3
6 changed files with 149 additions and 32 deletions
|
@ -51,7 +51,8 @@ pub async fn home(
|
|||
display_name: String,
|
||||
username: String
|
||||
}
|
||||
|
||||
|
||||
// FIXME: query! can't cope with this. returns a type error
|
||||
let posts = sqlx::query_as::<_, Post>(
|
||||
r#"
|
||||
WITH RECURSIVE get_home_timeline_with_boosts(
|
||||
|
@ -84,8 +85,6 @@ pub async fn home(
|
|||
.await
|
||||
.unwrap();
|
||||
|
||||
dbg!(&posts);
|
||||
|
||||
let mut out = Vec::<TimelineStatus>::new();
|
||||
for record in posts.iter() {
|
||||
let mut boost: Option<Box<TimelineStatus>> = None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue