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

[Feature] URL Preview #18

Open
krille-chan opened this issue Jul 14, 2023 · 5 comments
Open

[Feature] URL Preview #18

krille-chan opened this issue Jul 14, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@krille-chan
Copy link
Owner

Description

URL Preview from Matrix API to show Image / Metadate of a linked URL.

Example: /_matrix/media/r0/preview_url?url=https%3A%2F%2Fmatrix.org&ts=1510610716656 HTTP/1.1

Output

{
  "og:title": "Matrix Blog Post",
  "og:description": "This is a really cool blog post from matrix.org",
  "og:image": "mxc://example.com/ascERGshawAWawugaAcauga",
  "og:image:type": "image/png",
  "og:image:height": 48,
  "og:image:width": 48,
  "matrix:image:size": 102400
}
@nebulade
Copy link

I guess this could also mean direct links to images would be shown? Then it may be a half-way solution for inline gifs even.

@BhasherBEL
Copy link

It would also be interesting to be able to disable this function, as vulnerabilities have recently been revealed using cloaking.

@cperrin88
Copy link

I think there is a property that can be set on a per room basis whether or not you want url previews.

@Mikaela
Copy link
Collaborator

Mikaela commented Mar 11, 2024

Naturally the migration ate the spec link.


It would also be interesting to be able to disable this function, as vulnerabilities have recently been revealed using cloaking.

What vulnerabilities and user cloaking are you referring to?


Note that URL previews shouldn't be performed on client side regardless of the insecurity nightmare Element is requested and performs.

@yannikthegenius
Copy link

+1

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

6 participants