From 3e6bcb8b4f752575d4eb74e395ad93103706f221 Mon Sep 17 00:00:00 2001 From: CismonX Date: Sun, 9 Mar 2025 14:21:13 +0800 Subject: [PATCH] backend_firefox: set bookmark initial sync status New bookmarks should be assigned SYNC_STATUS_NEW (value 1). --- src/backend_firefox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend_firefox.c b/src/backend_firefox.c index 667c498..e1054ee 100644 --- a/src/backend_firefox.c +++ b/src/backend_firefox.c @@ -735,9 +735,9 @@ mozbm_insert ( sqlite3_stmt **stmt_ptr = &ctx->stmts[STMT_MOZBM_INSERT]; char const *sql = "INSERT INTO `moz_bookmarks` (`parent`, `position`, `title`, " - "`dateAdded`, `lastModified`, `type`, `fk`, `guid`) " + "`dateAdded`, `lastModified`, `type`, `fk`, `guid`, `syncStatus`) " "VALUES (?1, safeincr((" MOZBM_MAXPOS("?1") ")), ?2, ?3, ?3, " - "?4, nullif(?5, -1), ?6)"; + "?4, nullif(?5, -1), ?6, 1)"; int status; DO_QUERY(ctx, stmt_ptr, sql, NULL, NULL, status, prepare:, ,