# Empty oneboxes because linked post contains github onebox

**URL:** https://meta.discourse.org/t/empty-oneboxes-because-linked-post-contains-github-onebox/269436
**Category:** Bug
**Created:** [June 23, 2023, 5:03pm UTC](https://meta.discourse.org/t/empty-oneboxes-because-linked-post-contains-github-onebox/269436 "2023-06-23T17:03:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [June 23, 2023, 5:03pm UTC](https://meta.discourse.org/t/empty-oneboxes-because-linked-post-contains-github-onebox/269436/1 "2023-06-23T17:03:04Z")

</div>

> [@Usernames in shared links break anonymity](https://meta.discourse.org/t/usernames-in-shared-links-break-anonymity/42554/22):
>
> Might be worth a #ux::category topic…

So here it is:  
The onebox for posts containing a github onebox do not show any text of the post. Example:

> [@"Share a link" for a post should not leak username](https://meta.discourse.org/t/share-a-link-for-a-post-should-not-leak-username/66489/32):
>
> [https://github.com/discourse/discourse/commit/998bd191a52e86db8ad0cc9c108535c144b6cc74](https://github.com/discourse/discourse/commit/998bd191a52e86db8ad0cc9c108535c144b6cc74) Now we have a site setting to disable the username.

Seems it worked in February because this post has a onebox with text  
[Per-user opt-in of appending the username on link sharing - #4 by JammyDodger](https://meta.discourse.org/t/per-user-opt-in-of-appending-the-username-on-link-sharing/255608/4)

The onebox is even empty if there is text in front of the github onebox

> [@Message category selector for group messages leads to "Error Something went wrong."](https://meta.discourse.org/t/message-category-selector-for-group-messages-leads-to-error-something-went-wrong/268607/7):
>
> This has been fixed in Thank you for the report @GregoryS

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [July 19, 2023, 10:30am UTC](https://meta.discourse.org/t/empty-oneboxes-because-linked-post-contains-github-onebox/269436/2 "2023-07-19T10:30:32Z")

</div>

I’ve come across this a couple of times myself now while quoting posts with fixes/commits. It does make using the onebox method a little unreliable. I’ll shift this over to #Contribute > Bug and see if we can get someone to take a look. 👍

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [July 27, 2023, 7:08pm UTC](https://meta.discourse.org/t/empty-oneboxes-because-linked-post-contains-github-onebox/269436/12 "2023-07-27T19:08:32Z")

</div>

A fix has been created for this

[https://github.com/discourse/discourse/pull/22829](https://github.com/discourse/discourse/pull/22829)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [July 28, 2023, 3:56pm UTC](https://meta.discourse.org/t/empty-oneboxes-because-linked-post-contains-github-onebox/269436/13 "2023-07-28T15:56:49Z")

</div>

Great!

> [@Empty oneboxes because linked post contains github onebox](https://meta.discourse.org/t/empty-oneboxes-because-linked-post-contains-github-onebox/269436/12):
>
> A fix has been created for this

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [July 31, 2023, 2:00pm UTC](https://meta.discourse.org/t/empty-oneboxes-because-linked-post-contains-github-onebox/269436/14 "2023-07-31T14:00:25Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
