Skip to content

MSC4417: Application service url previews #19522

@Half-Shot

Description

@Half-Shot

Tracking issue for matrix-org/matrix-spec-proposals#4417

Context

This is the implementation for the application service API handler that requests URL previews from integrations when they offer an enhancement to do URL Previews. As with other AS APIs, they register their intent to handle a regex and the request is passed down to them. They may respond with either a 200 response with the valid OpenGraph data, or any other response to be skipped. ASes may also mark themselves as exclusive to disallow other ASes or the homeserver from attempting to resolve a URL.

Current design in Synapse

This is implemented in the appservice/api.py layer, inside the Appservice handler, and ultimately media/url_previewer.py

Usage

Pre-requisites:

The feature is configured using:

experimental_features:
	msc4417_enabled: true

url_preview_enabled: true

Caveats to be aware of

How do we know when to remove this

We can remove this when one of the following is true:

  • MSC4417 passes spec review and lands in the spec.
  • The integrations team (@Half-Shot is the contact point) decides they no longer need this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions