diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-04-22 22:09:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-22 22:09:03 +0200 |
commit | 75c4ab9d12d3a2f3de52c51b5006fe9d5d9afae4 (patch) | |
tree | 0153790700fc3d161d57a056a7917c97ce9e0936 /app/lib/ostatus | |
parent | 4ca2f73b126de89a917680d60f40cae7f589f55f (diff) |
Remove "nsfw" category for sensitive statuses in OStatus serializer (#7048)
Fix #7011
Diffstat (limited to 'app/lib/ostatus')
-rw-r--r-- | app/lib/ostatus/atom_serializer.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/lib/ostatus/atom_serializer.rb b/app/lib/ostatus/atom_serializer.rb index 055b4649c..7c66f2066 100644 --- a/app/lib/ostatus/atom_serializer.rb +++ b/app/lib/ostatus/atom_serializer.rb @@ -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 |