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:
parent
4d0643fb49
commit
ab3b0d95a2
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue