privacy - limit public profiles & public ap outboxes to last 6 days of history

staging
multiple creatures 2019-07-21 17:15:50 -05:00
parent 3582566a52
commit 61461a5323
1 changed files with 6 additions and 5 deletions

View File

@ -50,16 +50,17 @@ class AccountsController < ApplicationController
def filtered_statuses def filtered_statuses
if reblogs_requested? if reblogs_requested?
default_statuses.reblogs scope = default_statuses.reblogs
elsif replies_requested? elsif replies_requested?
@account.replies ? default_statuses : default_statuses.without_replies scope = @account.replies ? default_statuses : default_statuses.without_replies
elsif media_requested? elsif media_requested?
default_statuses.where(id: account_media_status_ids) scope = default_statuses.where(id: account_media_status_ids)
elsif tag_requested? elsif tag_requested?
hashtag_scope scope = hashtag_scope
else else
default_statuses.without_replies.without_reblogs scope = default_statuses.without_replies.without_reblogs
end end
current_user.blank? ? scope.where(created_at: 6.days.ago..Time.current) : scope
end end
def default_statuses def default_statuses