Empty oneboxes because linked post contains github onebox

AI-generated summary

The oneboxes of linked posts containing GitHub oneboxes are empty and do not show the post’s text. Moin provided examples of affected posts, including this link, and noted that the issue did not occur in February, as seen in this post. JammyDodger confirmed encountering the issue while quoting posts with fixes/commits. A fix for the bug has been created, as reported by blake in this pull request.

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

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

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

4 Likes

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. :+1:

3 Likes

A fix has been created for this

https://github.com/discourse/discourse/pull/22829

7 Likes

Great!

2 Likes

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