In a UX-focused discussion on enhancing Discourse oneboxes, sam highlighted that Slack-style oneboxes include richer metadata—such as favicon, site name, and publish date—missing in Discourse’s generic oneboxes. He emphasized the value of og:site_name and article:published_time for context, especially for news content. codinghorror agreed, suggesting prioritizing publish date and site name from available metadata, while deferring favicon due to complexity. techAPJ implemented site name and publish date, with examples from Huffington Post, Vox, and The Verge. sam requested styling improvements for the date display and noted localization questions. codinghorror clarified that only the date (not time) should be shown, with full timestamp optionally in a tooltip. sam proposed relative dates like “3 days ago,” but codinghorror and sam agreed absolute dates are preferable for baked content, especially in emails. techAPJ updated styling and confirmed date localization is not yet implemented. Finally, techAPJ announced favicon support is now live, with examples across multiple sites, completing the enhancement.
The publish time is particularly interesting for og:type article, because its news and when it happened makes a big diff. Favicon and nice title are a great little touch.
I think adding the publish time and date is the easiest, if it is in the metadata.. maybe site name if it is there too, which is easier than pulling <title> .. so can we start with that @techAPJ
Title there is: Oldest Winery Found In Eastern Europe After Wine Residue Detected In Jars … we would render it twice if we used title. What we want is og:site_name if it is available instead of the actual site URL.
All changes should be fairly simple, and now that we download onebox images they will not incur any cross site talking after processed for favicon.
Favicon is going to be much pain and trauma, but I agree on the other two, if the metadata is present, let’s use it.. whitelist that metadata. Handle those first @techAPJ then we can deal with favicon foibles later.
No, these are baked once, that ‘3 days ago’ would be permanently baked into the post, wouldn’t it? Needs to be an absolute date. I think that’s generally preferable anyway in this case for external data.
Technically we have a post processor that runs live on every post just like @j.jaffeux plugin works, but totally agree it’s a pretty big pain to implement and email is a problem even if web is straightforward to solve