I'm trying to embed posts from Mastodon and Threads on my #WordPress site and... wow... things are a mess.
Posts from Mastodon.social look great, but posts from other Mastodon servers aren't displaying properly.
Then the Threads posts break all the formatting and shows up wherever they want. All of the Thread embeds show the comment they are replying to. Which means you see the same main comment appear over and over again.
I need a break.
https://docpop.org/2024/08/sharing-photos-from-the-day-of-red-sun-in-san-francisco/
@docpop If you are "embedding" a post by using any tags other than blockquote and img, you are doing it wrong.
@jwz I’m using the embed code that Mastodon provides and putting that code into the customer html block in WP. Unfortunately, codes from some Mastodon servers don’t appear the same as the codes that Mastodon.social supplies.
@docpop My point is, those "embed codes" are a fundamental evil that should be stricken from the consciousness of the web. They only came into existence in the first place for surveillance tracking, and should be left to die, not copied.
If you want to quote what someone said, you use blockquote and paste the text. You link back to it with an a href. If they posted an image or a video, you use the img or video tags.
If you are a nice person, you mirror the media instead of just hotlinking it.
@docpop
STOP DOING EMBEDS
Things dreamed up by the UTTERLY DERANGED:
<iframe src="...site that is not yours...">
<script src="https://mastodon.social/embed.js">
"Hello I would like to mine bitcoin for you"
"Thank you for the tracking cookies and single point of failure"
THEY HAVE PLAYED US FOR ABSOLUTE FOOLS
Yup. Here's the little code I wrote. You might want to run it note for note.
https://github.com/edent/Tweet2Embed/blob/main/mastodon2html.py
Turns any public Mastodon status into semantic HTML & CSS for embedding.
Happy to answer any questions.
@Edent
Now I have an earworm