Mastodon embeds not displaying on public facing pages #125
Labels
No labels
A11y
Automated Testing
Contributable
Contributed
Decision
Design
Development
Drutopia
IndieWeb
Infrastructure
Launch Critical
Marketing
Needs documentation
Post-Launch
status
Abandoned
status
Blocked
status
Deploy
status
Doing
status
Done
status
In Review
status
Needs Clarification
status
Test
status
To Do
type
Bug
type
Task
type
User Story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: geo/geo-coop#125
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What it says in the title. Just tried embedding a toot (yes, I am still hanging onto that term) yesterday and for some reason, while it renders fine in the back-end editor, it doesn't appear on the public-facing page after saving it. I tried querying the Masto braintrust about it and made this much headway on figuring out what the problem is (see link).
https://social.coop/@GuerillaOntologist/112485081498910244
assigned to @mlncn
@joshua_davis I have hopped in to take a look and will be talking to Ben and Keegan on 10/1.
I will do my best to get some action/info/update on this by the end of this week.
Getting closer to figuring this out. The major part of the problem is related to this file:
web/themes/custom/geofresco/src/global/js/responsive-iframes.js
Commenting out the content of this file, I am able to get an i-frame to display. While it is there, it is not styled great.
Here is the commit where this all started 5 years ago:
c020254a62
The script has been moved since it was first added, but it looks like it was a quick work-around due to an issue with Bulma setting a "height of auto and squashing them down" (them being the embeds), per the commit message. I can confirm that I am dealing with the exact same issue now when I uncomment the script. It looks like this was first put into place for making iframe embedded videos responsive.
Leaving this here for when I continue trying to figure this out tomorrow.
And last little detail, it looks like the script was changing the contents of the embed from:
to
which set the height to
0px
among other thingsEDIT: This is embedding single posts, not a feed, my RSS comment does not apply: One thing, this is a widespread need and we should make it possible to bring in via Mastodon RSS feeds which is always going to be more robust than an iframe.
But iframes should absolutely not be getting quashed, and the current version of Bulma fixed that problem, so we should upgrade the theme: #126
mentioned in commit
3231199c04
@joshua_davis Keegan hotfixed this on the live site.
unassigned @mlncn
mentioned in commit
e3da49fcbc