mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
DEV: Apply syntax_tree formatting to app/*
This commit is contained in:
@ -4,17 +4,16 @@ class ClicksController < ApplicationController
|
||||
skip_before_action :check_xhr, :preload_json, :verify_authenticity_token
|
||||
|
||||
def track
|
||||
params.require([:url, :post_id, :topic_id])
|
||||
params.require(%i[url post_id topic_id])
|
||||
|
||||
TopicLinkClick.create_from(
|
||||
url: params[:url],
|
||||
post_id: params[:post_id],
|
||||
topic_id: params[:topic_id],
|
||||
ip: request.remote_ip,
|
||||
user_id: current_user&.id
|
||||
user_id: current_user&.id,
|
||||
)
|
||||
|
||||
render json: success_json
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user