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:
@@ -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,
|
||||
|
||||
@@ -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(" ")
|
||||
|
||||
Reference in New Issue
Block a user