if (!$keywords) {
unset($data['keywords']);
- } elseif ($keyword_denylist) {
+ } elseif ($keyword_denylist && !empty($data['keywords'])) {
$list = explode(', ', $keyword_denylist);
foreach ($list as $keyword) {
{
$data = self::queryUrl($url, $photo, true, $keyword_denylist);
+ if (empty($data['keywords'])) {
+ return [];
+ }
+
$taglist = [];
foreach ($data['keywords'] as $keyword) {
$hashtag = str_replace([' ', '+', '/', '.', '#', "'"],