Skip to content

Experimental support for URL preview handling (MSC4417)#1217

Draft
Half-Shot wants to merge 1 commit intomainfrom
hs/url-previews
Draft

Experimental support for URL preview handling (MSC4417)#1217
Half-Shot wants to merge 1 commit intomainfrom
hs/url-previews

Conversation

@Half-Shot
Copy link
Copy Markdown
Contributor

Uses matrix-org/matrix-spec-proposals#4417

This adds very basic support for handling delegated URL previews from the homeserver, at the moment supporting a very basic preview of GitHub Pull Requests.

This needs:

  • Tidying up
    • Safety guards
    • Caching
  • Tests
  • Documentation

);
}

if (url.startsWith("https://github.com")) {

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

'
https://github.com
' may be followed by an arbitrary host name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants