mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 21:04:33 +08:00
DEV: Apply syntax_tree formatting to app/*
This commit is contained in:
@ -4,7 +4,11 @@ class UserActionsController < ApplicationController
|
||||
def index
|
||||
user_actions_params.require(:username)
|
||||
|
||||
user = fetch_user_from_params(include_inactive: current_user.try(:staff?) || (current_user && SiteSetting.show_inactive_accounts))
|
||||
user =
|
||||
fetch_user_from_params(
|
||||
include_inactive:
|
||||
current_user.try(:staff?) || (current_user && SiteSetting.show_inactive_accounts),
|
||||
)
|
||||
offset = [0, user_actions_params[:offset].to_i].max
|
||||
action_types = (user_actions_params[:filter] || "").split(",").map(&:to_i)
|
||||
limit = user_actions_params.fetch(:limit, 30).to_i
|
||||
@ -20,11 +24,11 @@ class UserActionsController < ApplicationController
|
||||
action_types: action_types,
|
||||
guardian: guardian,
|
||||
ignore_private_messages: params[:filter].blank?,
|
||||
acting_username: params[:acting_username]
|
||||
acting_username: params[:acting_username],
|
||||
}
|
||||
|
||||
stream = UserAction.stream(opts).to_a
|
||||
render_serialized(stream, UserActionSerializer, root: 'user_actions')
|
||||
render_serialized(stream, UserActionSerializer, root: "user_actions")
|
||||
end
|
||||
|
||||
def show
|
||||
|
Reference in New Issue
Block a user