FIX: never attempt to log invalid post numbers

Previously in some cases we would queue logging of invalid post numbers

The impact would be we would miss logging an incoming link and would leak
an error.
This commit is contained in:
Sam
2018-11-21 11:58:47 +11:00
parent 86255faa08
commit 20268385a5
4 changed files with 23 additions and 3 deletions

View File

@ -806,7 +806,7 @@ class TopicsController < ApplicationController
host: request.host,
current_user: current_user,
topic_id: @topic_view.topic.id,
post_number: params[:post_number],
post_number: @topic_view.current_post_number,
username: request['u'],
ip_address: request.remote_ip
}