diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-21 17:15:50 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-21 17:16:18 -0500 |
commit | 61461a53239b18ee581dd1b57c1cd83c0900814b (patch) | |
tree | 07d82624be1146f4bc6b26bcb9c524551f164996 /app | |
parent | 3582566a5298a8cc132e42221b4d7fbce4fd7dc1 (diff) |
privacy - limit public profiles & public ap outboxes to last 6 days of history
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/accounts_controller.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index 8994449b4..084201d85 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -50,16 +50,17 @@ class AccountsController < ApplicationController def filtered_statuses if reblogs_requested? - default_statuses.reblogs + scope = default_statuses.reblogs elsif replies_requested? - @account.replies ? default_statuses : default_statuses.without_replies + scope = @account.replies ? default_statuses : default_statuses.without_replies elsif media_requested? - default_statuses.where(id: account_media_status_ids) + scope = default_statuses.where(id: account_media_status_ids) elsif tag_requested? - hashtag_scope + scope = hashtag_scope else - default_statuses.without_replies.without_reblogs + scope = default_statuses.without_replies.without_reblogs end + current_user.blank? ? scope.where(created_at: 6.days.ago..Time.current) : scope end def default_statuses |