0
0
Fork 0

Remove "nsfw" category for sensitive statuses in OStatus serializer (#7048)

Fix #7011
This commit is contained in:
Eugen Rochko 2018-04-22 22:09:03 +02:00 committed by GitHub
parent 4ca2f73b12
commit 75c4ab9d12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 10 deletions

View file

@ -364,8 +364,6 @@ class OStatus::AtomSerializer
append_element(entry, 'category', nil, term: tag.name)
end
append_element(entry, 'category', nil, term: 'nsfw') if status.sensitive?
status.media_attachments.each do |media|
append_element(entry, 'link', nil, rel: :enclosure, type: media.file_content_type, length: media.file_file_size, href: full_asset_url(media.file.url(:original, false)))
end