nsfw: fix wrong return parameter count in hook article image

This commit is contained in:
Andrew Dolgov 2021-03-07 14:00:56 +03:00
parent 266c8a6eae
commit 518e677a6b
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class NSFW extends Plugin {
$article_tags = $article["tags"];
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 {
return ["", "", $content];
}
@ -116,5 +116,5 @@ class NSFW extends Plugin {
function api_version() {
return 2;
}
}