about summary refs log tree commit diff
path: root/app/serializers/rest
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-17 12:05:45 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-17 12:08:35 -0500
commite56e3d187f8ddd3db72fc90c5d200f552d5c1c04 (patch)
tree59204082c7f9731d301716f08865f8639149452c /app/serializers/rest
parent4a1b8bcf34ce834ee8c30f1ac94c29f4e56a2b41 (diff)
[Filters] Merge thread muting and hiding into a single action
Diffstat (limited to 'app/serializers/rest')
-rw-r--r--app/serializers/rest/status_serializer.rb9
1 files changed, 0 insertions, 9 deletions
diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb
index c172a37af..39d812185 100644
--- a/app/serializers/rest/status_serializer.rb
+++ b/app/serializers/rest/status_serializer.rb
@@ -22,7 +22,6 @@ class REST::StatusSerializer < ActiveModel::Serializer
 
   attribute :published if :local?
   attribute :hidden, if: :current_user?
-  attribute :conversation_hidden, if: :current_user?
   attribute :notify, if: :locally_owned?
   attribute :title?, key: :article
   attribute :article_content, if: :title?
@@ -140,14 +139,6 @@ class REST::StatusSerializer < ActiveModel::Serializer
     end
   end
 
-  def conversation_hidden
-    if instance_options && instance_options[:relationships]
-      instance_options[:relationships].hidden_conversations_map[object.conversation_id] || false
-    else
-      current_user.account.hiding_conversation?(object.conversation)
-    end
-  end
-
   def hidden
     if instance_options && instance_options[:relationships]
       instance_options[:relationships].hidden_statuses_map[object.id] || false