comments: fix video duration not being shown on thumbnails

Fix the video duration not being shown on thumbnails on the
https://danbooru.donmai.us/comments page.

BUG: this introduces duplicate HTML ids on the comments page. Post
thumbnails and post comment containers both have the same html ID.
This commit is contained in:
evazion
2021-11-02 02:53:42 -05:00
parent a5ed8c72c9
commit d8a55bd62b
6 changed files with 13 additions and 27 deletions

View File

@@ -31,9 +31,9 @@ class CommentsControllerTest < ActionDispatch::IntegrationTest
get comments_path(group_by: "post")
assert_response :success
assert_select "#post_#{@post.id}", 1
assert_select "#post_#{@post.id} .comment", 1
assert_select "#post_#{@post.id} .show-all-comments-link", 0
assert_select "div#post_#{@post.id}", 1
assert_select "div#post_#{@post.id} .comment", 1
assert_select "div#post_#{@post.id} .show-all-comments-link", 0
end
should "not bump posts with nonbumping comments" do