Index: src/views/pages/post-edit.ejs
===================================================================
--- src/views/pages/post-edit.ejs	(revision b5a09ce2f2e9daf88c11443526cecc77c3c84678)
+++ src/views/pages/post-edit.ejs	(revision 04031873473c62253ea8961f8fc5cd47159ac270)
@@ -257,4 +257,49 @@
           if (cw && nsfw && !cw.__nsfwWired) { cw.__nsfwWired = true;
             cw.addEventListener('input', function () { if (cw.value.trim()) nsfw.checked = true; });
+          }
+        })();
+        </script>
+        <% // Poll (federates as an AS2 Question). Free feature. A poll with votes is frozen.
+           var _poll = null; try { _poll = post.poll_json ? JSON.parse(post.poll_json) : null; } catch (e) { _poll = null; }
+           var _pollLocked = (typeof pollLocked !== 'undefined' && pollLocked);
+           var _pollOpts = (_poll && Array.isArray(_poll.options) && _poll.options.length) ? _poll.options : [{ name: '' }, { name: '' }]; %>
+        <label class="pe-checkbox" style="margin-top:8px">
+          <input type="checkbox" name="poll_enabled" value="1" id="pe-poll-toggle" <%= _poll ? 'checked' : '' %> <%= _pollLocked ? 'disabled' : '' %>>
+          <span>📊 <%= t('pedit.poll_label') %></span>
+        </label>
+        <div id="pe-poll-fields" style="margin-top:6px<%= _poll ? '' : ';display:none' %>">
+          <% if (_pollLocked) { %><p style="font-size:12px;opacity:.7;margin:0 0 6px"><%= t('pedit.poll_locked') %></p><% } %>
+          <div id="pe-poll-opts">
+            <% _pollOpts.forEach(function (o) { %>
+              <input type="text" name="poll_option" class="pe-poll-opt" maxlength="100" value="<%= (o && o.name) || '' %>" placeholder="<%= t('pedit.poll_option_ph') %>" <%= _pollLocked ? 'disabled' : '' %>
+                     style="display:block;width:100%;box-sizing:border-box;margin-bottom:5px;font-size:13px;padding:7px 9px;border-radius:7px;border:1px solid var(--rule,rgba(128,128,128,.35));background:transparent;color:inherit">
+            <% }); %>
+          </div>
+          <button type="button" id="pe-poll-add" class="btn" data-ph="<%= t('pedit.poll_option_ph') %>" <%= _pollLocked ? 'disabled' : '' %> style="font-size:12.5px;padding:5px 10px">+ <%= t('pedit.poll_add') %></button>
+          <label class="pe-checkbox" style="margin-top:8px">
+            <input type="checkbox" name="poll_multiple" value="1" <%= (_poll && _poll.multiple) ? 'checked' : '' %> <%= _pollLocked ? 'disabled' : '' %>>
+            <span><%= t('pedit.poll_multiple') %></span>
+          </label>
+          <label style="display:block;font-size:12.5px;opacity:.8;margin:6px 0 4px"><%= t('pedit.poll_duration') %></label>
+          <select name="poll_duration" <%= _pollLocked ? 'disabled' : '' %> style="padding:7px 9px;border-radius:7px;border:1px solid var(--rule,rgba(128,128,128,.35));background:transparent;color:inherit;font-size:13px">
+            <% [['300','5m'],['1800','30m'],['3600','1h'],['21600','6h'],['43200','12h'],['86400','1d'],['259200','3d'],['604800','7d']].forEach(function (d) { %>
+              <option value="<%= d[0] %>" <%= d[0] === '86400' ? 'selected' : '' %>><%= t('pedit.poll_dur_' + d[1]) %></option>
+            <% }); %>
+          </select>
+        </div>
+        <script>
+        (function () {
+          var tog = document.getElementById('pe-poll-toggle'), box = document.getElementById('pe-poll-fields');
+          if (tog && box && !tog.__wired) { tog.__wired = true; tog.addEventListener('change', function () { box.style.display = tog.checked ? '' : 'none'; }); }
+          var add = document.getElementById('pe-poll-add'), opts = document.getElementById('pe-poll-opts');
+          if (add && opts && !add.__wired) { add.__wired = true;
+            add.addEventListener('click', function () {
+              if (opts.querySelectorAll('.pe-poll-opt').length >= 8) return;
+              var i = document.createElement('input');
+              i.type = 'text'; i.name = 'poll_option'; i.className = 'pe-poll-opt'; i.maxLength = 100;
+              i.placeholder = add.getAttribute('data-ph') || '';
+              i.setAttribute('style', 'display:block;width:100%;box-sizing:border-box;margin-bottom:5px;font-size:13px;padding:7px 9px;border-radius:7px;border:1px solid var(--rule,rgba(128,128,128,.35));background:transparent;color:inherit');
+              opts.appendChild(i);
+            });
           }
         })();
