From 8dc8aaaeb0a8824d8e86cb9d0ea4bd48bdbc56ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Sun, 26 Apr 2015 00:22:29 +0200 Subject: [PATCH] fix build --- plugins/poll/plugin.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/poll/plugin.rb b/plugins/poll/plugin.rb index 1f8ba3aa9f5..d6b6181e2bf 100644 --- a/plugins/poll/plugin.rb +++ b/plugins/poll/plugin.rb @@ -248,8 +248,8 @@ after_initialize do post.custom_fields[POLLS_CUSTOM_FIELD] = polls post.save_custom_fields(true) - # push the changes - DiscourseBus.publish("/polls/#{post_id}", { polls: polls }) + # publish the changes + DiscourseBus.publish("/polls/#{post.id}", { polls: polls }) end end else