nsfw: fix wrong return parameter count in hook article image
This commit is contained in:
parent
266c8a6eae
commit
518e677a6b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue