From 942b9126a1bac5b61d640e9f60001a7bf114df34 Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Thu, 27 May 2021 08:39:51 +1000 Subject: [PATCH] FIX: no error when double save post with poll (#13111) Some plugins hook into Post after save to set custom fields and save again. For example: https://github.com/discourse/discourse-category-experts/blob/main/lib/category_experts/post_handler.rb#L27 Problem is that in case like that `raw_changed?` is false but all callback are triggered. `extracted_polls` is class atribute therefore that should be reset with each attempt. That was causing an error: ``` #