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

Add optional parameters to select which elements to embed. #1058

Open
Invertex opened this issue Nov 16, 2024 · 2 comments
Open

Add optional parameters to select which elements to embed. #1058

Invertex opened this issue Nov 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Invertex
Copy link

Invertex commented Nov 16, 2024

Sometimes in posts on BSKY or Twitter, there will be content that isn't useful to the embed. It would be great to be able to say for example "only embed the first image". Sometimes posts on Twitter even have a few images and video, so being able to select which video you want to embed (since Discord doesn't support multiple videos in one element) would make that also helpful.

I could imagine a format like this https://fxbsky.app/profile/kiginobiru.bsky.social/post/3kkuvsr7h6h2w/f0110

Where 0 excludes that element and 1 includes it. Simple bitmask. So the second and third element would embed in that case.
So if someone wrote f1 it would embed only the first image/video and not the other 4. Or f01 for just the second.

Feels like it would be intuitive enough for the average person once they'd seen it done a few times.

@dangeredwolf dangeredwolf added the enhancement New feature or request label Jan 28, 2025
@dangeredwolf
Copy link
Member

dangeredwolf commented Jan 28, 2025

This exists for Twitter because it respects specifying a specific embed, for example /photo/2. Bluesky does not have the same syntax so this would need to be implemented. Not sure if copying Twitter's scheme for this is a good idea or not.

@Invertex
Copy link
Author

Invertex commented Jan 28, 2025

I wasn't really thinking about it from the aspect of visiting the page and it showing that photo, just purely for the sake of further control over how something embeds, in which case there is access to the array of media elements to select with by number and feed the modified embed data to Discord for example. And if you visited the fxbsky.app URL, it already strips those extra parameters and leads to the post itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants