diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-21 20:50:30 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-21 20:50:30 -0500 |
commit | 084b9504017e519e33007f7aa8cdff7d571f954a (patch) | |
tree | bcefc968d1b5ae0ba40bac9adb2eb8955c3b6a21 /app/models | |
parent | bca5a3073f3f6bee2c64f3e199e9e56d0dd7ff7e (diff) |
split `hide public profile` & `hide public ap outbox` into separate user options, make original `Account.hidden` prop federation-affecting `invisible mode`
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/account.rb | 1 | ||||
-rw-r--r-- | app/models/user.rb | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb index 54d458666..1955b7aee 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -134,6 +134,7 @@ class Account < ApplicationRecord :always_local_only?, :max_public_history, + :hides_public_profile?, :hides_public_outbox?, :hides_interactions?, :hides_network?, diff --git a/app/models/user.rb b/app/models/user.rb index 24451741e..1d06a43f8 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -122,6 +122,7 @@ class User < ApplicationRecord :hide_mntions_packm8, :hide_mascot, :hide_interactions, + :hide_public_profile, :hide_public_outbox, :max_public_history, @@ -286,6 +287,10 @@ class User < ApplicationRecord @hides_interactions ||= (settings.hide_interactions || false) end + def hides_public_profile? + @hides_public_profile ||= (settings.hide_public_profile || false) + end + def hides_public_outbox? @hides_public_outbox ||= (settings.hide_public_outbox || false) end |