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

Ability to suggest whether inline previews (url or thumbnails?) are intended to be shown for a given event #221

Open
ara4n opened this issue Jan 4, 2017 · 4 comments
Labels
A-Client-Server Issues affecting the CS API enhancement A suggestion for a relatively simple improvement to the protocol

Comments

@ara4n
Copy link
Member

ara4n commented Jan 4, 2017

Obviously related to general 'human representation of events' shenanigans

@turt2live
Copy link
Member

human representation of events is matrix-org/matrix-spec-proposals#1225

@yyportne
Copy link

I'd like to propose that links in html-content support an attribute for controlling URL-Previews.

<a href="http://www.example.com"
   xmlns:matrixhtml="http://www.matrix.org/ns/embedded-html"
   matrixhtml:link-preview="(disable|enable|redundant|…)">My Link</a>

The attribute matrixhtml:link-preview controls URL-preview generation:

  • disable: Disables URL-preview for the context-link.
  • enable: Enable URL-preview for the context-link.
  • redundant: Indicates that URL-previews are redundant und need not be generated (but are allowed).
    (There could also be a matrixhtml:link-preview-reason attribute that contains reasons such as 'redundant')

The context for this request is the following: I am currently developing a bot that reads RSS/RDF-Site-Summary/Atom feeds and posts the extracted content to a matrix room. The matrix events contain several links such as the feed channel, feed-item link, image-link, ... The URL-preview shows duplicate information, which I'd like to prevent.

See attached screenshot.
url-preview

@turt2live turt2live added the A-Client-Server Issues affecting the CS API label Feb 6, 2019
@vranki
Copy link

vranki commented Feb 4, 2021

Any plans on implementing this?

I'd like to use HTML formatting on a Matrix bot that sends messages with large number of links. Currently clients render previews for all links filling the screen and making it practically unusable. @chresan 's proposal would solve the problem.

@uhoreg
Copy link
Member

uhoreg commented Feb 5, 2021

matrix-org/matrix-spec-proposals#2385 is a proposal to fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Client-Server Issues affecting the CS API enhancement A suggestion for a relatively simple improvement to the protocol
Projects
None yet
Development

No branches or pull requests

5 participants