1
0
mirror of https://github.com/writeas/writefreely synced 2024-12-08 06:31:47 +01:00

Fix INSERT remote_likes query for SQLite

This commit is contained in:
Matt Baer 2024-12-01 18:15:58 -05:00
parent 8193a41082
commit 6b4179fa01

View File

@ -535,7 +535,7 @@ func handleFetchCollectionInbox(app *App, w http.ResponseWriter, r *http.Request
}
// Add like
_, err = t.Exec("INSERT INTO remote_likes (post_id, remote_user_id, created) VALUES (?, ?, NOW())", likePostID, remoteUserID)
_, err = t.Exec("INSERT INTO remote_likes (post_id, remote_user_id, created) VALUES (?, ?, "+app.db.now()+")", likePostID, remoteUserID)
if err != nil {
if !app.db.isDuplicateKeyErr(err) {
t.Rollback()