|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
class AccountsController < ApplicationController |
|
|
|
class AccountsController < ApplicationController |
|
|
|
PAGE_SIZE = 20 |
|
|
|
PAGE_SIZE = 20 |
|
|
|
|
|
|
|
PAGE_SIZE_MAX = 200 |
|
|
|
|
|
|
|
|
|
|
|
include AccountControllerConcern |
|
|
|
include AccountControllerConcern |
|
|
|
include SignatureAuthentication |
|
|
|
include SignatureAuthentication |
|
|
@ -40,7 +41,8 @@ class AccountsController < ApplicationController |
|
|
|
format.rss do |
|
|
|
format.rss do |
|
|
|
expires_in 1.minute, public: true |
|
|
|
expires_in 1.minute, public: true |
|
|
|
|
|
|
|
|
|
|
|
@statuses = filtered_statuses.without_reblogs.limit(PAGE_SIZE) |
|
|
|
limit = params[:limit].present? ? [params[:limit].to_i, PAGE_SIZE_MAX].min : PAGE_SIZE |
|
|
|
|
|
|
|
@statuses = filtered_statuses.without_reblogs.limit(limit) |
|
|
|
@statuses = cache_collection(@statuses, Status) |
|
|
|
@statuses = cache_collection(@statuses, Status) |
|
|
|
render xml: RSS::AccountSerializer.render(@account, @statuses, params[:tag]) |
|
|
|
render xml: RSS::AccountSerializer.render(@account, @statuses, params[:tag]) |
|
|
|
end |
|
|
|
end |
|
|
|