作者名をタグに追加する

This commit is contained in:
eai04191
2019-08-22 05:23:28 +09:00
parent 9926cc3357
commit 0a994884a0
2 changed files with 4 additions and 3 deletions

View File

@@ -32,6 +32,7 @@ class IwaraResolver implements Resolver
$tags = $descriptionElement->filter('a[href^="/video-categories"], a[href^="/images"]')->extract('_text');
// 役に立たないタグを削除する
$tags = array_values(array_diff($tags, ['Uncategorized', 'Other']));
array_push($tags, $author);
$metadata->title = $title;
$metadata->description = '投稿者: ' . $author . PHP_EOL . $description;