mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-22 06:51:28 +00:00
nsfw: fix wrong return parameter count in hook article image
This commit is contained in:
@@ -29,7 +29,7 @@ class NSFW extends Plugin {
|
|||||||
$article_tags = $article["tags"];
|
$article_tags = $article["tags"];
|
||||||
|
|
||||||
if (count(array_intersect($tags, $article_tags)) > 0) {
|
if (count(array_intersect($tags, $article_tags)) > 0) {
|
||||||
return [Config::get_self_url() . "/plugins/nsfw/nsfw.png", "", "nsfw", []];
|
return [Config::get_self_url() . "/plugins/nsfw/nsfw.png", "", "nsfw"];
|
||||||
} else {
|
} else {
|
||||||
return ["", "", $content];
|
return ["", "", $content];
|
||||||
}
|
}
|
||||||
@@ -116,5 +116,5 @@ class NSFW extends Plugin {
|
|||||||
function api_version() {
|
function api_version() {
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user