mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Cache url data for failed inline oneboxes
This commit is contained in:
@@ -10,11 +10,13 @@ export function applyInlineOneboxes(inline, ajax) {
|
||||
data: { urls: Object.keys(inline) }
|
||||
}).then(result => {
|
||||
result["inline-oneboxes"].forEach(onebox => {
|
||||
_cache[onebox.url] = onebox;
|
||||
let links = inline[onebox.url] || [];
|
||||
links.forEach(link => {
|
||||
link.text(onebox.title);
|
||||
});
|
||||
if (onebox.title) {
|
||||
_cache[onebox.url] = onebox;
|
||||
let links = inline[onebox.url] || [];
|
||||
links.forEach(link => {
|
||||
link.text(onebox.title);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user