about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-14 20:04:14 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-15 02:45:41 +0000
commitd1ea02408be8ecaa2b67ff8f219674639999ebba (patch)
treea83f0d6b360019a8d682fc4723a752e73be0d03f /app/models
parent6185c6e2a3d2dc9cfb062014c73ea636a9d040bf (diff)
(actually) add `hidden` attribute to status table & model
Diffstat (limited to 'app/models')
-rw-r--r--app/models/conversation.rb9
-rw-r--r--app/models/status.rb3
2 files changed, 7 insertions, 5 deletions
diff --git a/app/models/conversation.rb b/app/models/conversation.rb
index 7d277fa85..d9ee6c8b2 100644
--- a/app/models/conversation.rb
+++ b/app/models/conversation.rb
@@ -3,10 +3,11 @@
 #
 # Table name: conversations
 #
-#  id         :bigint(8)        not null, primary key
-#  uri        :string
-#  created_at :datetime         not null
-#  updated_at :datetime         not null
+#  id            :bigint(8)        not null, primary key
+#  uri           :string
+#  created_at    :datetime         not null
+#  updated_at    :datetime         not null
+#  limit_replies :integer
 #
 
 class Conversation < ApplicationRecord
diff --git a/app/models/status.rb b/app/models/status.rb
index 19285057b..067bdb72a 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -31,6 +31,7 @@
 #  boostable              :boolean
 #  reject_replies         :boolean
 #  tsv                    :tsvector
+#  hidden                 :boolean
 #
 
 class Status < ApplicationRecord
@@ -250,7 +251,7 @@ class Status < ApplicationRecord
   end
 
   def hidden?
-    !distributable?
+    hidden || !distributable?
   end
 
   def distributable?