Sensitive content federates using the "nsfw" hashtag
This commit is contained in:
parent
f90133d2ad
commit
e90fcb46e3
3 changed files with 18 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue