Page MenuHomePhorge

No OneTemporary

Size
902 B
Referenced Files
None
Subscribers
None
diff --git a/changelog.d/preview_posting.fix b/changelog.d/preview_posting.fix
new file mode 100644
index 0000000000..1a35dbeba0
--- /dev/null
+++ b/changelog.d/preview_posting.fix
@@ -0,0 +1 @@
+Fix posting not working when using preview
diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js
index 1acd211c49..ef012c9cf1 100644
--- a/src/components/post_status_form/post_status_form.js
+++ b/src/components/post_status_form/post_status_form.js
@@ -721,6 +721,10 @@ const PostStatusForm = {
})
.finally(() => {
this.previewLoading = false
+ // If we post right after doing a preview request
+ // backend treats non-preview request as preview one
+ // and "eats" the post
+ this.updateIdempotencyKey()
})
},
debouncePreviewStatus: debounce(function () {

File Metadata

Mime Type
text/x-diff
Expires
Sat, Aug 29, 4:59 AM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1736796
Default Alt Text
(902 B)

Event Timeline