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!
This commit is contained in:
Hippo 2020-07-30 18:13:56 +05:30
parent cfa30a3e73
commit 302a74d679
2 changed files with 6 additions and 1 deletions

View file

@ -220,6 +220,11 @@ app.ws('/ws/push-ghost', (ws, req) => {
seance.pushToGhost(postSlug) seance.pushToGhost(postSlug)
.then(() => { .then(() => {
console.info(`"${postSlug}" pushed successfully.`) 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}`) ws.send(`done: ${postSlug}`)
}) })
} else { } else {

View file

@ -147,7 +147,7 @@ function ghostPush(e) {
addNotification(commandData, className='is-danger') addNotification(commandData, className='is-danger')
} else { } else {
// show alert // show alert
addNotification(`${postSlug} has been pushed to Ghost`, 'is-success') addNotification(`${postSlug} has been pushed to Ghost. Buffer share link: <a href="https://www.snipettemag.com/${postSlug}">https://www.snipettemag.com/${postSlug}</a>`, 'is-success')
} }
// since it's done, clean up // since it's done, clean up