diff options
Diffstat (limited to 'app/serializers/rest')
-rw-r--r-- | app/serializers/rest/status_serializer.rb | 9 |
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 |