FIX: Cache short upload URL (#8541)

The code for caching was already there, but it was caching invalid data,
which automatically invalidated the cache entry.
This commit is contained in:
Dan Ungureanu 2019-12-12 16:03:34 +02:00 committed by Régis Hanol
parent 43ca1bb132
commit b6589f203b
1 changed files with 1 additions and 1 deletions

View File

@ -755,7 +755,7 @@ export default Component.extend({
getUploadMarkdown(upload)
);
cacheShortUploadUrl(upload.short_url, upload.url);
cacheShortUploadUrl(upload.short_url, upload);
this.appEvents.trigger(
"composer:replace-text",
this.uploadPlaceholder.trim(),