From 302a74d679567d7aca3c43f11a08640d4ab93c03 Mon Sep 17 00:00:00 2001 From: Hippo Date: Thu, 30 Jul 2020 18:13:56 +0530 Subject: [PATCH] Add helpful nudges for post-processing Now provides a reminder to fix the title/subtitle/excerpt, and a helpful URL of the final post destiation to publish on Buffer! @manasakashi12 hope you find this useful! --- server.js | 5 +++++ static/app.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index dfb654d..3fb390d 100644 --- a/server.js +++ b/server.js @@ -220,6 +220,11 @@ app.ws('/ws/push-ghost', (ws, req) => { seance.pushToGhost(postSlug) .then(() => { console.info(`"${postSlug}" pushed successfully.`) + + // warn about fixing byline and description + ws.send('notification: The "make the title proper" bug is yet to be fixed! Please make sure to adjust the title and subtitle, as well as the excerpt in the sidebar.') + + // send 'done' message ws.send(`done: ${postSlug}`) }) } else { diff --git a/static/app.js b/static/app.js index 26ecfa7..3eb40e9 100644 --- a/static/app.js +++ b/static/app.js @@ -147,7 +147,7 @@ function ghostPush(e) { addNotification(commandData, className='is-danger') } else { // show alert - addNotification(`${postSlug} has been pushed to Ghost`, 'is-success') + addNotification(`${postSlug} has been pushed to Ghost. Buffer share link: https://www.snipettemag.com/${postSlug}`, 'is-success') } // since it's done, clean up