diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-07-13 12:53:20 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:41:03 -0500 |
commit | 9e0445fbd697386982e4ff0f19e7200c06b33137 (patch) | |
tree | d3c6dd97efbc93f8af009e155324b3a8719ac399 | |
parent | 29b2f6f320ac7d94448d7e1e58510ce7658b6f3e (diff) |
[Privacy] Allow unlisted posts on public pages when viewer is authenticated
-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 e1c230e7a..b485eedc9 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -74,7 +74,8 @@ class AccountsController < ApplicationController end def default_statuses - @account.statuses.not_local_only.where(visibility: :public) + visibility_scopes = user_signed_in? ? [:public, :unlisted] : :public + @account.statuses.not_local_only.where(visibility: visibility_scopes) end def only_media_scope |