0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added TODO to amp_content

refs #9866

- this can be removed if we drop v0.1
This commit is contained in:
kirrg001 2018-10-17 09:24:02 +02:00 committed by Katharina Irrgang
parent 15f6c2421c
commit 8caf8009ae

View file

@ -124,6 +124,7 @@ function getAmperizeHTML(html, post) {
amperize = amperize || new Amperize();
// make relative URLs abolute
// @TODO: API v2 already makes the urls absolute. Remove if we drop v0.1.
html = urlService.utils.makeAbsoluteUrls(html, urlService.utils.urlFor('home', true), post.url).html();
if (!amperizeCache[post.id] || moment(new Date(amperizeCache[post.id].updated_at)).diff(new Date(post.updated_at)) < 0) {