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

Link previews #241

Open
erlend-sh opened this issue Nov 15, 2024 · 0 comments · May be fixed by #305
Open

Link previews #241

erlend-sh opened this issue Nov 15, 2024 · 0 comments · May be fixed by #305
Milestone

Comments

@erlend-sh
Copy link
Contributor

erlend-sh commented Nov 15, 2024

Aka ‘link embed’ or ‘link card’ or ‘onebox’ for use on a page like this: https://weird.one/muni.town/identity

(that is, if I had written those links on newlines instead of in a list, which I’ve only done because we don’t support embeds yet.)

The prior art I’m most familiar with is in Discourse:

The UX logic is that a link posted on its own line should be rendered as a full embed, like so:

IMG_2575

I don’t know whether this is something that has to happen server-side (that’s how Discourse does it) or if this sort of thing can be done completely client-side nowadays (I doubt it).

There are also some security considerations when doing this type of meta-data fetching.

We could have used this if there was a JS/wasm client for it: https://github.com/EstebanBorai/link-preview

..but we just need whatever the JS/Svelte equivalent that, which I guess is metascraper.

@erlend-sh erlend-sh added this to the v0.4.1 milestone Jan 27, 2025
@sameoldlab sameoldlab linked a pull request Feb 7, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants