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
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ func handleFetchCollectionInbox(app *App, w http.ResponseWriter, r *http.Request
} }
// Add like // 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 err != nil {
if !app.db.isDuplicateKeyErr(err) { if !app.db.isDuplicateKeyErr(err) {
t.Rollback() t.Rollback()