Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedding multiple posts will load only one post in all embeds #17135

Open
trwnh opened this issue Dec 14, 2021 · 4 comments
Open

Embedding multiple posts will load only one post in all embeds #17135

trwnh opened this issue Dec 14, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@trwnh
Copy link
Member

trwnh commented Dec 14, 2021

Steps to reproduce the problem

  1. Copy the embed links for multiple different statuses
  2. Paste the iframes into a web page
  3. Load that web page

Expected behaviour

The different posts load in their respective frames

Actual behaviour

Only one post will load in all frames

Specifications

mastodon.social -- have some screenshots

image

image

@trwnh trwnh added the bug Something isn't working label Dec 14, 2021
@trwnh
Copy link
Member Author

trwnh commented Dec 14, 2021

this seems to be some kind of caching bug, as removing the iframes and trying to load only one at a time still causes the first-loaded one to be shown instead.

@trwnh
Copy link
Member Author

trwnh commented Dec 14, 2021

specifically in the javascript, as disabling javascript makes the correct posts show (although they are the wrong height, of course)

@miKa-pyon
Copy link

miKa-pyon commented Dec 19, 2021

Hm it works for me, including embedded posts with media.
Works for me in Chromium, Falkon, Firefox and Vivaldi.

Maybe if it helps to track this down, I am on Arch Linux with:
chromium 96.0.4664.110-1
falkon 3.1.0-16
firefox 95.0.1-1
vivaldi 5.0.2497.32-1

Tested embedding in a simple page using:
$ php -S localhost:9000

and on a live page.

@ClearlyClaire
Copy link
Contributor

Including the script multiple times may cause needless message-passing between the frames, but I fail to see anything that would cause this behavior, it only changes the frame's height…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants