diff options
author | Shel R <Yiskah.Raphen@gmail.com> | 2017-04-07 22:41:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 22:41:07 -0400 |
commit | 9edee2e64f30667e6f848bb7e27adb82cf1f91cd (patch) | |
tree | 1eb422e98bd7aefb687fd9d0938c669e7e6783f8 /app/controllers/accounts_controller.rb | |
parent | 30619a67168c0f021d37daa5d717e7a508cafd49 (diff) | |
parent | d7e1a282fe95fe04e918f52bdd476dedc6e97d01 (diff) |
Merge branch 'master' into patch-1
Diffstat (limited to 'app/controllers/accounts_controller.rb')
-rw-r--r-- | app/controllers/accounts_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index dc1aeb5ea..619c04be2 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -16,7 +16,8 @@ class AccountsController < ApplicationController end format.atom do - @entries = @account.stream_entries.order('id desc').where(activity_type: 'Status').where(hidden: false).with_includes.paginate_by_max_id(20, params[:max_id], params[:since_id]) + @entries = @account.stream_entries.order('id desc').where(hidden: false).with_includes.paginate_by_max_id(20, params[:max_id], params[:since_id]) + render xml: AtomSerializer.render(AtomSerializer.new.feed(@account, @entries.to_a)) end format.activitystreams2 |