mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Refactor + Fix: Wasn't correctly loading activity streams. Code is a lot more Ember-y now.
This commit is contained in:
parent
89a617f0c6
commit
0f296cd42b
15 changed files with 198 additions and 187 deletions
|
@ -1,11 +1,13 @@
|
|||
class UserActionsController < ApplicationController
|
||||
def index
|
||||
requires_parameters(:user_id)
|
||||
requires_parameters(:username)
|
||||
per_chunk = 60
|
||||
|
||||
user = fetch_user_from_params
|
||||
|
||||
opts = {
|
||||
user_id: params[:user_id].to_i,
|
||||
offset: params[:offset],
|
||||
user_id: user.id,
|
||||
offset: params[:offset].to_i,
|
||||
limit: per_chunk,
|
||||
action_types: (params[:filter] || "").split(",").map(&:to_i),
|
||||
guardian: guardian,
|
||||
|
@ -29,4 +31,5 @@ class UserActionsController < ApplicationController
|
|||
# todo
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue