about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-11 22:49:25 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-11 22:49:25 +0100
commite90fcb46e3e5bc4144d8777c2267bec638e327a0 (patch)
treecce8b79b97c115de80b908286173dabc38099545 /app/services
parentf90133d2adecedeb9b9fbc1ca524cdf097272893 (diff)
Sensitive content federates using the "nsfw" hashtag
Diffstat (limited to 'app/services')
-rw-r--r--app/services/process_hashtags_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/process_hashtags_service.rb b/app/services/process_hashtags_service.rb
index fa14c44da..ddcc64aa5 100644
--- a/app/services/process_hashtags_service.rb
+++ b/app/services/process_hashtags_service.rb
@@ -7,5 +7,7 @@ class ProcessHashtagsService < BaseService
     tags.map { |str| str.mb_chars.downcase }.uniq.each do |tag|
       status.tags << Tag.where(name: tag).first_or_initialize(name: tag)
     end
+
+    status.update(sensitive: true) if tags.include?('nsfw')
   end
 end