mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 16:35:57 +00:00
HOOK_ARTICLE_IMAGE: allow hooks to modify article content
This commit is contained in:
@@ -829,7 +829,7 @@ class Article extends Handler_Protected {
|
|||||||
$article_stream = "";
|
$article_stream = "";
|
||||||
|
|
||||||
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ARTICLE_IMAGE) as $p) {
|
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ARTICLE_IMAGE) as $p) {
|
||||||
list ($article_image, $article_stream) = $p->hook_article_image($enclosures, $content, $site_url);
|
list ($article_image, $article_stream, $content) = $p->hook_article_image($enclosures, $content, $site_url);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$article_image && !$article_stream) {
|
if (!$article_image && !$article_stream) {
|
||||||
|
|||||||
Reference in New Issue
Block a user