# 新用户最大链接数站点设置

**URL:** <https://meta.discourse.org/t/newuser-max-links-sitesetting/83372>\
**Category:** Support\
**Created:** [2018年三月20日 07:25 UTC](https://meta.discourse.org/t/newuser-max-links-sitesetting/83372 "2018-03-20T07:25:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![leo.proctor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leo.proctor/32/216158_2.png) [@leo.proctor](https://meta.discourse.org/u/leo.proctor)\
**Post date:** [2018年三月20日 07:25 UTC](https://meta.discourse.org/t/newuser-max-links-sitesetting/83372/1 "2018-03-20T07:25:42Z")

</div>

What is this setting for?

![Screenshot%20from%202018-03-20%2012%3A16%3A26](https://global.discourse-cdn.com/meta/optimized/3X/9/2/92b7d2120abbe8f66751b6abf34d3977d9c29f1b_2_690x79.png)

I’ve set it to **0** , but a new user can still add urls to a post. like [https://www.google.com/](https://www.google.com/)

Upone further debugging, it leads me [here](https://github.com/discourse/discourse/blob/63a1e9b60a1724a7435dc6e3069df3794235e039/app/models/post_analyzer.rb#L133). **cooked\_stripped** doesn’t return href urls because it is removed for having **.onebox** class.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2018年三月21日 05:18 UTC](https://meta.discourse.org/t/newuser-max-links-sitesetting/83372/2 "2018-03-21T05:18:59Z")

</div>

I believe this setting works, because I know @eviltrout set it to zero recently for a customer. Can you confirm Robin?

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2018年三月21日 15:14 UTC](https://meta.discourse.org/t/newuser-max-links-sitesetting/83372/3 "2018-03-21T15:14:27Z")

</div>

That particular (old) setting is not the greatest, and can essentially be considered deprecated unless you want to depend on its behavior. It only applies to TL0, and as you noticed it does not include oneboxes.

There is another setting that is more powerful and probably does what you want, `min trust to post links`. It allows you to choose the trust level that the links applies to, and it counts oneboxes as links.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2018年三月21日 22:18 UTC](https://meta.discourse.org/t/newuser-max-links-sitesetting/83372/4 "2018-03-21T22:18:28Z")

</div>

Should we remove the old setting?

---

<div class="post-metadata">

**Author:** ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)\
**Post date:** [2018年三月21日 23:11 UTC](https://meta.discourse.org/t/newuser-max-links-sitesetting/83372/5 "2018-03-21T23:11:58Z")

</div>

As flawed as it may be, it is not really replaced by `min trust to post links`, is it? It makes sense to allow TL0 users to post a few links but not too many…

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [2018年三月22日 17:57 UTC](https://meta.discourse.org/t/newuser-max-links-sitesetting/83372/6 "2018-03-22T17:57:36Z")

</div>

Yes. It’s only the “same” when set to 0.

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [2018年三月26日 22:00 UTC](https://meta.discourse.org/t/newuser-max-links-sitesetting/83372/7 "2018-03-26T22:00:08Z")

</div>

This topic was automatically closed after 33 hours. New replies are no longer allowed.
