Comments (11)
Only way around this would be to get rid of the privacy and server-fetch data which is undesirable
from matrix.to.
True, matrix.to will never be able to make the riot side of this happy with that restriction. The preview could at least be helpful though: "matrix.to - join a room" or something that describes what the site does instead of just repeating the title.
from matrix.to.
I think this is pretty important - if we want to share links out of band then they need to not look... weird.
Presumably we can inspect the URL to provide a little bit of context as to whether this is a permalink to a room, a message/event in a room, a user or a community. Perhaps something like:
- Permalink to a room on matrix.org
- Permalink to a message on matrix.org
- Permalink to Matrix user @ tom:lant.uk
- Permalink to Matrix community +coolstuff:matrix.org
from matrix.to.
The problem is that URL previews generally use a meta header, and they can't be easily calculated given most parers grep the content without running javascript.
from matrix.to.
So we can't do that because the server doesn't see the actual thing that's being linked to to generate the meta header
from matrix.to.
(there isn't actually a server component to matrix.to)
from matrix.to.
Aaaaaaaand matrix.to page content is generated clientside. Boo!
Presumably we could make a server-generated matrix.to server that stuffs a more useful summary into the meta header?
from matrix.to.
By which I mean something which honours the exact same URL scheme but generates the dynamic bits serverside rather than clientside
from matrix.to.
We could but a key point of matrix.to is that it doesn't leak your desire to join a room to anyone/any entity. It doesn't even appear in http logs because its after a #
from matrix.to.
I'm going to add open graph details to matrix.to that give a little more info about what a matrix.to link is. Unfortunately it seems there is no way to maintain privacy and provide better link previews.
from matrix.to.
from matrix.to.
Related Issues (20)
- MXIDs with slashes (`/`) incorrectly rejected HOT 8
- Matrix
- Add chatty.js to the list.
- Enable "ask every time" by default
- SSL Error HOT 13
- Embed links to third party identities with rel="me" for cross verification. HOT 1
- No obvious license for project
- Document `via` parameter better
- Make a pledge to only promote FOSS HOT 4
- package.json HOT 2
- repeated accounts HOT 1
- Invalid url for valid usernames HOT 1
- Adding a /.well-known/assetlinks.json file for android deeplink verification HOT 1
- Git hab HOT 1
- Deprecate matrix.to for FediLinks
- Already have an app section needs to be at the top HOT 3
- using (matrix.to) room links with element-web HOT 2
- matrix.to links broken HOT 1
- Add room via space url scheme
- https://github.com/soft2i.matrix-oi/matrix.to/issues/new
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matrix.to.