]> git.wh0rd.org - tt-rss.git/blobdiff - classes/api.php
split transparent rewriting of locally cached media URLs to execute after both saniti...
[tt-rss.git] / classes / api.php
old mode 100644 (file)
new mode 100755 (executable)
index 4c321d7..5dbf8dc
@@ -379,6 +379,8 @@ class API extends Handler {
                                        $article = $p->hook_render_article_api(array("article" => $article));
                                }
 
+                               $article['content'] = rewrite_cached_urls($article['content']);
+
                                array_push($articles, $article);
 
                        }
@@ -799,6 +801,8 @@ class API extends Handler {
                                                $headline_row = $p->hook_render_article_api(array("headline" => $headline_row));
                                        }
 
+                                       $headline_row['content'] = rewrite_cached_urls($headline_row['content']);
+
                                        array_push($headlines, $headline_row);
                                }
                        } else if (is_numeric($result) && $result == -1) {