about summary refs log tree commit diff
path: root/spec/lib/ostatus
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-04-22 22:09:03 +0200
committerGitHub <noreply@github.com>2018-04-22 22:09:03 +0200
commit75c4ab9d12d3a2f3de52c51b5006fe9d5d9afae4 (patch)
tree0153790700fc3d161d57a056a7917c97ce9e0936 /spec/lib/ostatus
parent4ca2f73b126de89a917680d60f40cae7f589f55f (diff)
Remove "nsfw" category for sensitive statuses in OStatus serializer (#7048)
Fix #7011
Diffstat (limited to 'spec/lib/ostatus')
-rw-r--r--spec/lib/ostatus/atom_serializer_spec.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/lib/ostatus/atom_serializer_spec.rb b/spec/lib/ostatus/atom_serializer_spec.rb
index 00e6f09dc..d46791307 100644
--- a/spec/lib/ostatus/atom_serializer_spec.rb
+++ b/spec/lib/ostatus/atom_serializer_spec.rb
@@ -386,12 +386,6 @@ RSpec.describe OStatus::AtomSerializer do
         expect(entry.category[:term]).to eq 'tag'
       end
 
-      it 'appends category element for NSFW if status is sensitive' do
-        status = Fabricate(:status, sensitive: true)
-        entry = OStatus::AtomSerializer.new.entry(status.stream_entry)
-        expect(entry.category[:term]).to eq 'nsfw'
-      end
-
       it 'appends link elements for media attachments' do
         file = attachment_fixture('attachment.jpg')
         media_attachment = Fabricate(:media_attachment, file: file)