Remove "nsfw" category for sensitive statuses in OStatus serializer (#7048)
Fix #7011
This commit is contained in:
parent
4ca2f73b12
commit
75c4ab9d12
3 changed files with 0 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue