From 42a16307407900d82879f8ffe72e7264638c8bb4 Mon Sep 17 00:00:00 2001 From: Ronald Langeveld Date: Mon, 31 Jul 2023 13:32:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixed=20email=20only=20to=20post?= =?UTF-8?q?=20rescheduling.=20(#17538)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs https://github.com/TryGhost/Product/issues/3657 - When reverting a post to a draft, the meta, `email_only` remained true. - This fix switches `email_only` back to false when the `revertToDraftTask` is executed. --- ghost/admin/app/utils/publish-options.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ghost/admin/app/utils/publish-options.js b/ghost/admin/app/utils/publish-options.js index 438758c156..28d556cec7 100644 --- a/ghost/admin/app/utils/publish-options.js +++ b/ghost/admin/app/utils/publish-options.js @@ -340,6 +340,7 @@ export default class PublishOptions { } this.post.status = 'draft'; + this.post.emailOnly = false; return yield this.post.save(); } catch (e) {