From 40058a97bd8db5fbb57046e1158f4997e4f6e94e Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 3 Dec 2025 21:59:52 +0100 Subject: Sync down and up around posting --- LICENSE | 2 +- index.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index d4a1906..5e9e1f3 100644 --- a/LICENSE +++ b/LICENSE @@ -632,4 +632,4 @@ copy of the Program in return for a fee. You should have received a copy of the GNU General Public License along with this program. If not, see - https://git.r.bdr.sh/rbdr/linkding-linkblog-updater + https://git.r.bdr.sh/linkding-linkblog-updater diff --git a/index.js b/index.js index 275b96c..9aa74de 100644 --- a/index.js +++ b/index.js @@ -110,9 +110,11 @@ async function run() { const gemfile = resolve(join(__dirname, `${filename}.gmi`)); await writeFile(gemfile, gemtext); + await internals.exec(`blog sync-down`); await internals.exec(`blog add ${gemfile}`); await internals.exec(`blog publish ${internals.blogUrl}`); await internals.exec(`blog publish-archive ${internals.archiveUrl}`); + await internals.exec(`blog sync-up`); await rm(gemfile); for (const bookmark of bookmarks) { -- cgit