post replacements: add "Tags" field to dialog box.

* Adds a "Tags" field to the post replacement dialog box. The given tags
  are added to the post after replacement.

* Prefills the Tags field with certain tags that usually need to be
  removed after replacement: replaceme, image_sample, jpeg_artifacts, etc.
This commit is contained in:
evazion
2017-06-26 18:17:16 -05:00
parent 8d22ab9de8
commit 9c50b24306
6 changed files with 21 additions and 11 deletions

View File

@@ -386,6 +386,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