mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-02 19:52:44 +01:00
5664c838fb
Summary: Ref T10262. Currently, we always render a tag like this when you `{F123}` an image in remarkup: ``` <img src="/xform/preview/abcdef/" /> ``` This either generates the preview or redirects to an existing preview. This is a good behavior in general, because the preview may take a while to generate and we don't want to wait for it to generate on the server side. However, this flickers a lot in Safari. We might be able to cache this, but we really shouldn't, since the preview URI isn't a legitimately stable/permanent one. Instead, do a (cheap) server-side check to see if the preview already exists. If it does, return a direct URI. This gives us a stable thumbnail in Safari. Test Plan: - Dragged a dog picture into comment box. - Typed text. - Thing didn't flicker like crazy all the time in Safari. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10262 Differential Revision: https://secure.phabricator.com/D15646 |
||
---|---|---|
.. | ||
__tests__ | ||
Aphront304Response.php | ||
Aphront400Response.php | ||
Aphront403Response.php | ||
Aphront404Response.php | ||
AphrontAjaxResponse.php | ||
AphrontDialogResponse.php | ||
AphrontFileResponse.php | ||
AphrontHTMLResponse.php | ||
AphrontHTTPProxyResponse.php | ||
AphrontJSONResponse.php | ||
AphrontPlainTextResponse.php | ||
AphrontProxyResponse.php | ||
AphrontRedirectResponse.php | ||
AphrontReloadResponse.php | ||
AphrontResponse.php | ||
AphrontStandaloneHTMLResponse.php | ||
AphrontUnhandledExceptionResponse.php | ||
AphrontWebpageResponse.php |