Fix missing object_id in received Note
This commit is contained in:
parent
cca8a5ff94
commit
fea3c17700
1 changed files with 3 additions and 1 deletions
|
@ -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?;
|
||||||
|
|
Loading…
Reference in a new issue