diff options
| author | Xe Iaso <me@christine.website> | 2022-07-11 12:47:02 +0000 |
|---|---|---|
| committer | Xe Iaso <me@christine.website> | 2022-07-11 12:47:02 +0000 |
| commit | 35e2696147b5549de7eb863ac94a2932823788c1 (patch) | |
| tree | 3a5bac010eea231a74cf7f20e0d156fd9c83338e | |
| parent | 4e57715b09c064d9729727a6d28847242cdb93a7 (diff) | |
| download | xesite-35e2696147b5549de7eb863ac94a2932823788c1.tar.xz xesite-35e2696147b5549de7eb863ac94a2932823788c1.zip | |
handlers/notes: fix update
Signed-off-by: Xe Iaso <me@christine.website>
| -rw-r--r-- | src/handlers/notes.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/handlers/notes.rs b/src/handlers/notes.rs index 60d82f7..304a370 100644 --- a/src/handlers/notes.rs +++ b/src/handlers/notes.rs @@ -304,14 +304,15 @@ pub async fn update( }; conn.execute( - "UPDATE notes SET (content, content_html, created_at, updated_at, deleted_at, reply_to) VALUES(?, ?, ?, ?, ?, ?)", + "UPDATE notes SET content=?, content_html=?, created_at=?, updated_at=?, deleted_at=?, reply_to=? where id=?", params![ note.content, note.content_html, note.created_at, note.updated_at, note.deleted_at, - note.reply_to + note.reply_to, + old_note.id, ], )?; |
