Merge pull request #3192 from evazion/feat-replacement-remove-tags

Post replacements: streamline removing tags; fix replacement url.
This commit is contained in:
Albert Yi
2017-06-27 13:41:50 -07:00
committed by GitHub
6 changed files with 32 additions and 13 deletions

View File

@@ -392,6 +392,11 @@ module Danbooru
true
end
# Should return true if the given tag should be suggested for removal in the post replacement dialog box.
def remove_tag_after_replacement?(tag)
tag =~ /replaceme|.*_sample|resized|upscaled|downscaled|md5_mismatch|jpeg_artifacts/i
end
def shared_dir_path
"/var/www/danbooru2/shared"
end