"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/controllers/topics_controller.rb" between
discourse-2.5.2.tar.gz and discourse-2.5.3.tar.gz

About: Discourse is a "next-generation" forum platform for community discussions.

topics_controller.rb  (discourse-2.5.2):topics_controller.rb  (discourse-2.5.3)
skipping to change at line 447 skipping to change at line 447
status_type = status_type =
begin begin
TopicTimer.types.fetch(params[:status_type].to_sym) TopicTimer.types.fetch(params[:status_type].to_sym)
rescue rescue
invalid_param(:status_type) invalid_param(:status_type)
end end
based_on_last_post = params[:based_on_last_post] based_on_last_post = params[:based_on_last_post]
params.require(:duration) if based_on_last_post params.require(:duration) if based_on_last_post
topic = Topic.find_by(id: params[:topic_id]) topic = Topic.find_by(id: params[:topic_id])
guardian.ensure_can_see!(topic)
guardian.ensure_can_moderate!(topic) guardian.ensure_can_moderate!(topic)
options = { options = {
by_user: current_user, by_user: current_user,
based_on_last_post: based_on_last_post based_on_last_post: based_on_last_post
} }
options.merge!(category_id: params[:category_id]) if !params[:category_id].b lank? options.merge!(category_id: params[:category_id]) if !params[:category_id].b lank?
options.merge!(duration: params[:duration].to_i) if params[:duration].presen t? options.merge!(duration: params[:duration].to_i) if params[:duration].presen t?
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)