posts: change video_with_sound tag to sound.

The `video_with_sound` tag was aliased to `sound`. Fix the autotagger
and the thumbnail icon.

https://danbooru.donmai.us/forum_topics/18818
This commit is contained in:
evazion
2021-06-26 22:48:47 -05:00
parent 0563ca3001
commit 10ddbae07b
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ class PostPreviewComponent < ApplicationComponent
def data_attributes
attributes = {
"data-id" => post.id,
"data-has-sound" => post.has_tag?("video_with_sound|flash_with_sound"),
"data-has-sound" => post.has_tag?("sound"),
"data-tags" => post.tag_string,
"data-pools" => post.pool_string,
"data-approver-id" => post.approver_id,

View File

@@ -66,7 +66,7 @@ class UploadService
def automatic_tags(media_file)
tags = []
tags << "video_with_sound" if media_file.has_audio?
tags << "sound" if media_file.has_audio?
tags << "animated_gif" if media_file.file_ext == :gif && media_file.is_animated?
tags << "animated_png" if media_file.file_ext == :png && media_file.is_animated?
tags.join(" ")