mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
DEV: Convert min_trust_to_post_links to groups (#25298)
We're changing the implementation of trust levels to use groups. Part of this is to have site settings that reference trust levels use groups instead. It converts the min_trust_to_post_links site setting to post_links_allowed_groups. This isn't used by any of our plugins or themes, so very little fallout.
This commit is contained in:
@ -11,7 +11,7 @@ RSpec.describe TopicLinkClick do
|
||||
|
||||
describe "topic_links" do
|
||||
before do
|
||||
@topic = Fabricate(:topic)
|
||||
@topic = Fabricate(:topic, user: Fabricate(:user, refresh_auto_groups: true))
|
||||
@post = Fabricate(:post_with_external_links, user: @topic.user, topic: @topic)
|
||||
TopicLink.extract_from(@post)
|
||||
@topic_link = @topic.topic_links.first
|
||||
@ -247,7 +247,7 @@ RSpec.describe TopicLinkClick do
|
||||
|
||||
context "with a query param and google analytics" do
|
||||
before do
|
||||
@topic = Fabricate(:topic)
|
||||
@topic = Fabricate(:topic, user: Fabricate(:user, refresh_auto_groups: true))
|
||||
@post =
|
||||
Fabricate(
|
||||
:post,
|
||||
|
Reference in New Issue
Block a user