UX: Show topic map in topics without replies by default (#28468)

This commit is contained in:
Jan Cernik 2024-08-21 15:41:50 -05:00 committed by GitHub
parent 5eca77dd70
commit 5090a56aa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -2991,7 +2991,7 @@ uncategorized:
show_topic_map_in_topics_without_replies:
client: true
default: false
default: true
user_preferences:
default_email_digest_frequency:

View File

@ -20,8 +20,7 @@ describe "Topic Map", type: :system do
sign_in(user)
topic_page.visit_topic(topic)
# topic map only appears after at least 1 reply
expect(topic_page).to have_no_topic_map
expect(topic_page).to have_topic_map
Fabricate(:post, topic: topic, created_at: 2.day.ago)
Fabricate(:post, topic: topic, created_at: 1.day.ago, like_count: 3)
2.times { Fabricate(:post, topic: topic, created_at: 1.day.ago, like_count: 1) }