votes: fixup various minor issues.
* Add a gap between thumbnails on mobile. * Adjust CSS for scores and vote buttons. * Include "Private favorites" as an incentive on the user upgrade page. * Fix vote buttons not being visible beneath thumbnails on mobile. * Fix the "Show scores" link not preserving the current page number. * Fix vote buttons being unintentionally enabled for all thumbnails by default. * Fix banned and restricted users being able to favorite posts by tagging them with `fav:self`. * Fix search engines being able to crawl /posts?view=score pages. * Fix broken tests.
This commit is contained in:
@@ -7,7 +7,7 @@ class PostNavbarComponentTest < ViewComponent::TestCase
|
||||
|
||||
setup do
|
||||
@post = create(:post)
|
||||
@user = create(:user)
|
||||
@user = create(:gold_user)
|
||||
end
|
||||
|
||||
context "The PostNavbarComponent" do
|
||||
@@ -46,9 +46,8 @@ class PostNavbarComponentTest < ViewComponent::TestCase
|
||||
context "for a post with favgroups" do
|
||||
setup do
|
||||
as(@user) do
|
||||
@favgroup1 = create(:favorite_group, creator: @user, is_public: true)
|
||||
@favgroup2 = create(:favorite_group, creator: @user, is_public: false)
|
||||
@post.update(tag_string: "favgroup:#{@favgroup1.id} favgroup:#{@favgroup2.id}")
|
||||
@favgroup1 = create(:favorite_group, creator: @user, post_ids: [@post.id])
|
||||
@favgroup2 = create(:private_favorite_group, creator: @user, post_ids: [@post.id])
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user