The discussion addresses a reported bug where administrators and moderators could not edit or add polls to posts older than five minutes. kennym initially reported the issue, noting that the system incorrectly blocked updates even for staff, and 2 AmiAthena confirmed similar restrictions when adding polls to old posts. kennym further investigated the code, suggesting the staff verification logic was faulty.
Developer zogstrip clarified that the behavior is intentional: polls cannot be modified after five minutes except for staff members to fix typos in option content. He noted that a recent commit aims to improve the error message to reflect this rule more clearly. However, cpradio pointed out a lingering inconsistency where the system prevents adding a poll to a post that never had one if the post is older than five minutes. zogstrip suggested creating a new post as a workaround, while cpradio confirmed they found a workaround but sought clarification on the strictness of the restriction.
I was trying to update an old poll post as an administrator after updating to the latest version of Discourse, and I got the message “You cannot update a poll after 5 minutes, please contact a moderator”.
Can you please fix that if I am logged in as a moderator or administrator that it updates the poll, please? This is clearly a bug.
I’ve also had this issue as a moderator. It also won’t let me add a poll to a non-poll post that’s over 5 minutes old, which seems like something that should be allowed without moderator approval.
Polls cannot be modified/updated/renamed/changed 5 minutes after their inception.
Pass that time, we only allow staff members to fix a typo (ie. edit the content of an option).
I just pushed a fix that will hopefully improve the copy and make it clearer
So what if a post doesn’t currently have a poll, and it is say a month old. If you edit that post, should you be able to add a poll? If so, there is still a bug (as I tried and got the “polls can’t be edited after 5 minutes error”)
Well, ultimately, I created screenshots, as I was trying to update our “Community Cheatsheet” So yes, I got around it, just was clarifying that it really is stopping any poll changes after the ninja edit window expires (or so it seems)