# Self Link previews not showing for private sites?

**URL:** <https://meta.discourse.org/t/self-link-previews-not-showing-for-private-sites/35591>\
**Category:** Bug\
**Created:** [Novembro 16, 2015, 12:23am UTC](https://meta.discourse.org/t/self-link-previews-not-showing-for-private-sites/35591 "2015-11-16T00:23:25Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [Novembro 16, 2015, 5:38pm UTC](https://meta.discourse.org/t/self-link-previews-not-showing-for-private-sites/35591/7 "2015-11-16T17:38:42Z")

</div>

> [@codinghorror](#):
>
> Can you repro this @techapj?

Yes I can repro this, but only on private (login required) _hosted_ instances.

The correct oneboxing behaviour in case of private instances is that the post gets oneboxed using [local onebox class](https://github.com/discourse/discourse/blob/master/lib/onebox/engine/discourse_local_onebox.rb), but in case of private hosted instances this is not happening (it’s using [WhitelistedGenericOnebox](https://github.com/discourse/onebox/blob/master/lib/onebox/engine/whitelisted_generic_onebox.rb) class instead).

I am looking into this issue and will post here with more updates.

---

_[View the full topic](https://meta.discourse.org/t/self-link-previews-not-showing-for-private-sites/35591)._
