about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/account.rb1
-rw-r--r--app/models/user.rb5
2 files changed, 6 insertions, 0 deletions
diff --git a/app/models/account.rb b/app/models/account.rb
index b3afdbcf7..54d458666 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_outbox?,
            :hides_interactions?,
            :hides_network?,
            :hides_stats?,
diff --git a/app/models/user.rb b/app/models/user.rb
index eeefce075..24451741e 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_outbox,
     :max_public_history,
 
     :auto_play_gif,
@@ -285,6 +286,10 @@ class User < ApplicationRecord
     @hides_interactions ||= (settings.hide_interactions || false)
   end
 
+  def hides_public_outbox?
+    @hides_public_outbox ||= (settings.hide_public_outbox || false)
+  end
+
   def max_public_history
     @_max_public_history ||= (settings.max_public_history || 6)
   end