# OneBox doesn't render boxes for Phabricator URLs

**URL:** <https://meta.discourse.org/t/onebox-doesnt-render-boxes-for-phabricator-urls/74421>\
**Category:** Product Support\
**Created:** [20 Novembre 2017, 12:58pm UTC](https://meta.discourse.org/t/onebox-doesnt-render-boxes-for-phabricator-urls/74421 "2017-11-20T12:58:16Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![epriestley](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/epriestley/32/82937_2.png) [@epriestley](https://meta.discourse.org/u/epriestley)\
**Post date:** [22 Novembre 2017, 8:49pm UTC](https://meta.discourse.org/t/onebox-doesnt-render-boxes-for-phabricator-urls/74421/11 "2017-11-22T20:49:42Z")

</div>

For clarity, Quim’s examples (of GitHub resources, specifically) are all hard-coded by OneBox and not achievable by Phabricator (or other third-party software) using OpenGraph tags, right?

For example, the “Opened by (author) on (date)”, “changed **x** files with…”, “Enhancement” tag, and the text formatting in his examples are because OneBox hard codes various GitHub layouts:

> <https://github.com/discourse/onebox/blob/main/lib/onebox/engine/github_issue_onebox.rb>

> <https://github.com/discourse/onebox/blob/main/templates/githubissue.mustache>

…and it doesn’t appear that a similar rendering is possible through OpenGraph.

We could conceivably achieve something similar by submitting a pull request to OneBox, but such a request wouldn’t necessarily need to use OpenGraph (it looks like the GitHub layouts use an `Accept` header to retrieve the resource in JSON, and ignore the OpenGraph metadata on the pages).

Also, I couldn’t find it documented anywhere, but Discourse appears to require an `og:description` property in order to OneBox a URL (ultimately in `whitelisted_generic_onebox.rb::has_text?`). This isn’t required by the OpenGraph spec linked above (`og:description` is “Optional Metadata”), which led to some confusion.

---

_[View the full topic](https://meta.discourse.org/t/onebox-doesnt-render-boxes-for-phabricator-urls/74421)._
