Skip to content

Disable preview_url in Mastodon API

feld requested to merge feld/pleroma:fix/disable-preview_url into develop

This is a problem for a few reasons:

  1. It wastes bandwidth as we are fetching the object twice.

  2. Remote media cannot have a preview_url because we are not post-processing remote media, nor should any instance do this for security reasons.

  3. Audio objects get a preview_url which is just silly.

We should leave this disabled until we add these capabilities into Pleroma. Additionally we need to make sure we only set this when the conditions are right.

Merge request reports