logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 5206609812c5420ddc7aebc818f89c34162f28fa
parent edcd6982a5add96fa4390b0d18de0b0a104df1d4
Author: tusooa <tusooa@kazv.moe>
Date:   Wed,  5 Apr 2023 23:45:19 -0400

Prevent main post form from being associated with draft on load

Diffstat:

Msrc/components/post_status_form/post_status_form.js3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js @@ -142,7 +142,8 @@ const PostStatusForm = { const [statusType, refId] = typeAndRefId({ replyTo: this.replyTo, profileMention: this.profileMention, statusId: this.statusId }) - let statusParams = this.getDraft(statusType, refId) + // If we are starting a new post, do not associate it with old drafts + let statusParams = (this.draftId || statusType !== 'new') ? this.getDraft(statusType, refId) : null if (!statusParams) { if (statusType === 'reply' || statusType === 'mention') {