A platform for community discussion. Free, open, simple.
FIX: in rare conditions post timing would miss the user
Sam53b97b28f082
diff --git a/app/controllers/topics_controller.rb b/app/controllers/topics_controller.rbindex b9334d490d7..fd20607f9e8 100644--- a/app/controllers/topics_controller.rb+++ b/app/controllers/topics_controller.rb@@ -622,9 +622,12 @@ class TopicsController < ApplicationControllertopic_time = allowed_params[:topic_time].to_itimings = allowed_params[:timings].to_h || {}+ # ensure we capture current user for the block+ user = current_user+hijack doPostTiming.process_timings(- current_user,+ user,topic_id,topic_time,timings.map { |post_number, t| [post_number.to_i, t.to_i] },