mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:31:10 +08:00
Use consistent new-style hashes in render calls *twitch*
This commit is contained in:
@ -2,7 +2,7 @@ class UserActionsController < ApplicationController
|
||||
def index
|
||||
requires_parameters(:user_id)
|
||||
per_chunk = 60
|
||||
render :json => UserAction.stream(
|
||||
render json: UserAction.stream(
|
||||
user_id: params[:user_id].to_i,
|
||||
offset: params[:offset],
|
||||
limit: per_chunk,
|
||||
@ -14,7 +14,7 @@ class UserActionsController < ApplicationController
|
||||
|
||||
def show
|
||||
requires_parameters(:id)
|
||||
render :json => UserAction.stream_item(params[:id], guardian)
|
||||
render json: UserAction.stream_item(params[:id], guardian)
|
||||
end
|
||||
|
||||
def private_messages
|
||||
|
Reference in New Issue
Block a user