Browse Source

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

Andrew Dolgov 1 month ago
parent
commit
f47998f569
1 changed files with 2 additions and 0 deletions
  1. 2 0
      classes/handler/public.php

+ 2 - 0
classes/handler/public.php

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