# Automatically embed Mastodon posts from URL

**URL:** <https://meta.discourse.org/t/automatically-embed-mastodon-posts-from-url/257460>\
**Category:** Feature\
**Tags:** embedding, pr-welcome\
**Created:** [March 8, 2023, 8:31am UTC](https://meta.discourse.org/t/automatically-embed-mastodon-posts-from-url/257460 "2023-03-08T08:31:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [March 8, 2023, 4:21pm UTC](https://meta.discourse.org/t/automatically-embed-mastodon-posts-from-url/257460/2 "2023-03-08T16:21:19Z")

</div>

Looks like we can easily detect a default mastodon site `body > div#mastodon` and create good oneboxes for text, image and video posts as all the info we need is present in the meta opengraph tags. Putting the #pr-welcome tag here.

---

_[View the full topic](https://meta.discourse.org/t/automatically-embed-mastodon-posts-from-url/257460)._
