RocketChat / RocketChat/Rocket.Chat

Preemption for one-shot disabling embed functionality (stop link metadata)

Open
#3,520 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triaged type: improvement
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

screenshot_20160611_033408

Essentially, it would be useful if, for some links, one could "preempt" the "embedder" in a way that it doesn't reach out and grab the link metadata.

Something like that.

It might also be useful to disable this By default for a pasted set of links the current functionality if you paste a set of URLs is that the embedder fetches metadata for each URL sent to the channel. For large sets of URLs that may be informational to the channel, this can be annoying since it might return metadata for 10 or so links at a time and flood the channel. This is not the main focus of this ticket though, just an addendum. Perhaps to include this, one could do something like:

!!!
https://example1.com
https://www.google.com
https://www.yoursitehere.com
!!!

Referencing bug #3467 , it also seems that simply turning on code blocks doesn't really help, either.

Thanks for the great work you guys rock(et)!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the behavior described here and the related bug #3467, then locate the link-metadata embedder entry point. Decide and document how a one-shot marker should suppress metadata fetching and how grouped pasted URLs should behave. Done means the chosen syntax reliably prevents unwanted previews without changing ordinary link embedding.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
full-stack
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.