mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 03:21:12 +08:00
SECURITY: User action route was returning too much data
This commit is contained in:
@ -22,7 +22,7 @@ class UserActionsController < ApplicationController
|
||||
|
||||
def show
|
||||
params.require(:id)
|
||||
render json: UserAction.stream_item(params[:id], guardian)
|
||||
render_serialized(UserAction.stream_item(params[:id], guardian), UserActionSerializer)
|
||||
end
|
||||
|
||||
def private_messages
|
||||
|
Reference in New Issue
Block a user