summaryrefslogtreecommitdiff
path: root/classes/article.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-08-20 12:12:32 +0300
committerAndrew Dolgov <[email protected]>2018-08-20 12:12:32 +0300
commit2aef804f4b2cee7baf569f707eb74c27005d7daa (patch)
treedf0fde6d09857421cb0084e144a4f8e7edde2e2b /classes/article.php
parentc5c3a0a2a8febaa2b1ebcae6c17ff4398a9da6c7 (diff)
split transparent rewriting of locally cached media URLs to execute after both sanitize() and HOOK_RENDER_ARTICLE to allow plugins work on original source URLs consistently
Diffstat (limited to 'classes/article.php')
-rwxr-xr-xclasses/article.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/article.php b/classes/article.php
index c8ee5b931..71dfdabc4 100755
--- a/classes/article.php
+++ b/classes/article.php
@@ -610,6 +610,8 @@ class Article extends Handler_Protected {
$line = $p->hook_render_article($line);
}
+ $line['content'] = rewrite_cached_urls($line['content']);
+
$num_comments = (int) $line["num_comments"];
$entry_comments = "";