Fix missing object_id in received Note

This commit is contained in:
silverpill 2021-10-10 00:46:23 +00:00
parent cca8a5ff94
commit fea3c17700

View file

@ -88,9 +88,10 @@ pub async fn create_post(
INSERT INTO post ( INSERT INTO post (
id, author_id, content, id, author_id, content,
in_reply_to_id, in_reply_to_id,
object_id,
created_at created_at
) )
VALUES ($1, $2, $3, $4, $5) VALUES ($1, $2, $3, $4, $5, $6)
RETURNING post RETURNING post
", ",
&[ &[
@ -98,6 +99,7 @@ pub async fn create_post(
&author_id, &author_id,
&data.content, &data.content,
&data.in_reply_to_id, &data.in_reply_to_id,
&data.object_id,
&created_at, &created_at,
], ],
).await?; ).await?;