0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

🐛 Fixed fetching RSS in case of posts with no content

refs #10679

- Handles `null` html values in calculation
This commit is contained in:
Rish 2019-04-17 15:11:37 +05:30
parent 4d0643fb49
commit ab3b0d95a2

View file

@ -393,6 +393,7 @@ function redirectToAdmin(status, res, adminPath) {
* the variable that takes the result of this function
*/
function makeAbsoluteUrls(html, siteUrl, itemUrl, options = {assetsOnly: false}) {
html = html || '';
const htmlContent = cheerio.load(html, {decodeEntities: false});
const staticImageUrlPrefixRegex = new RegExp(STATIC_IMAGE_URL_PREFIX);