[PixivBridge] Fix tags (#2799)

This commit is contained in:
Yaman Qalieh 2022-06-08 23:05:56 -04:00 committed by GitHub
parent 037d5866ca
commit 8f0d90f653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,7 +168,7 @@ class PixivBridge extends BridgeAbstract {
$item['title'] = $result['title']; $item['title'] = $result['title'];
$item['author'] = $result['userName']; $item['author'] = $result['userName'];
$item['timestamp'] = $result['updateDate']; $item['timestamp'] = $result['updateDate'];
$item['tags'] = $result['tags']; $item['categories'] = $result['tags'];
$cached_image = $this->cacheImage($result['url'], $result['id'], $cached_image = $this->cacheImage($result['url'], $result['id'],
array_key_exists('illustType', $result)); array_key_exists('illustType', $result));
$item['content'] = "<img src='" . $cached_image . "' />"; $item['content'] = "<img src='" . $cached_image . "' />";