HomePhorge

Always serve "{meme ...}" from the CDN domain, never from the primary domain

Description

Always serve "{meme ...}" from the CDN domain, never from the primary domain

Summary:
Ref T13101. This is a minimal change to make "{meme ...}" work with the new Content-Security-Policy by using an Ajax request to generate the image and then swapping the source on the client.

This could be much cleaner (see T5258, etc).

Test Plan: Used {meme, src=cat6, above=i am, below=cat}, chuckled completely unironically.

Maniphest Tasks: T13101

Differential Revision: https://secure.phabricator.com/D19196

Details

Provenance
epriestleyAuthored on Mar 8 2018, 7:36 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP6095d889987d: Don't require prototypes for "{image ...}"
Branches
Unknown
Tags
Unknown

Event Timeline