generate_syndicated_feed: use local media in generated feeds if it is available

This commit is contained in:
Andrew Dolgov 2020-01-13 17:02:14 +03:00
parent 040dfc71fc
commit f47998f569
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,8 @@ class Handler_Public extends Handler {
$content = sanitize($line["content"], false, $owner_uid, $content = sanitize($line["content"], false, $owner_uid,
$feed_site_url, false, $line["id"]); $feed_site_url, false, $line["id"]);
$content = DiskCache::rewriteUrls($content);
if ($line['note']) { if ($line['note']) {
$content = "<div style=\"$note_style\">Article note: " . $line['note'] . "</div>" . $content = "<div style=\"$note_style\">Article note: " . $line['note'] . "</div>" .
$content; $content;