diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-27 12:46:59 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-27 12:46:59 -0600 |
commit | df1c0bc8537dd57c10040925fac62f7acb785736 (patch) | |
tree | 274dc8348a9a14728f89a1f6ab68fb4308a6978f | |
parent | 4caaaf1eee4f965e1073d2903a124ef98423a924 (diff) |
**MAJOR**: fix posts with `hidden` flag being visible from profile pages (thanks @Brainship)
-rw-r--r-- | app/controllers/accounts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index dd19e2498..b034a1710 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -97,7 +97,7 @@ class AccountsController < ApplicationController end return scope if current_user return Status.none unless @account&.user - scope.where(created_at: @account.user.max_public_history.to_i.days.ago..Time.current) + scope.where(hidden: false, created_at: @account.user.max_public_history.to_i.days.ago..Time.current) end def default_statuses |