summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/components/post-form.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue
index 221dc74313..657053cc93 100644
--- a/src/client/components/post-form.vue
+++ b/src/client/components/post-form.vue
@@ -339,7 +339,12 @@ export default defineComponent({
this.cw = init.cw;
this.useCw = init.cw != null;
if (init.poll) {
- this.poll = init.poll;
+ this.poll = {
+ choices: init.poll.choices.map(x => x.text),
+ multiple: init.poll.multiple,
+ expiresAt: init.poll.expiresAt,
+ expiredAfter: init.poll.expiredAfter,
+ };
}
this.visibility = init.visibility;
this.localOnly = init.localOnly;