Git Product home page Git Product logo

Comments (11)

t3chguy avatar t3chguy commented on July 18, 2024

Only way around this would be to get rid of the privacy and server-fetch data which is undesirable

from matrix.to.

turt2live avatar turt2live commented on July 18, 2024

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.

lampholder avatar lampholder commented on July 18, 2024

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.

turt2live avatar turt2live commented on July 18, 2024

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.

t3chguy avatar t3chguy commented on July 18, 2024

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.

t3chguy avatar t3chguy commented on July 18, 2024

(there isn't actually a server component to matrix.to)

from matrix.to.

lampholder avatar lampholder commented on July 18, 2024

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.

lampholder avatar lampholder commented on July 18, 2024

By which I mean something which honours the exact same URL scheme but generates the dynamic bits serverside rather than clientside

from matrix.to.

t3chguy avatar t3chguy commented on July 18, 2024

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.

JorikSchellekens avatar JorikSchellekens commented on July 18, 2024

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.

t3chguy avatar t3chguy commented on July 18, 2024

Duplicate of #207 -> #180

from matrix.to.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.