]> cat aescling's git repositories - mastodon.git/commitdiff
Do not keep polls pre-filled in thread mode
authorThibaut Girka <thib@sitedethib.com>
Sun, 14 Jul 2019 22:21:01 +0000 (00:21 +0200)
committerThibG <thib@sitedethib.com>
Sun, 14 Jul 2019 22:41:09 +0000 (00:41 +0200)
app/javascript/flavours/glitch/reducers/compose.js

index a47b8b7bda19802256e40fe617f9c53abe9586cc..5f176b83254738ff1e8368897cfa0bd8775824c6 100644 (file)
@@ -182,6 +182,7 @@ function continueThread (state, status) {
     map.set('privacy', status.visibility);
     map.set('sensitive', false);
     map.update('media_attachments', list => list.clear());
+    map.set('poll', null);
     map.set('idempotencyKey', uuid());
     map.set('focusDate', new Date());
     map.set('caretPosition', null);