fix identicon

This commit is contained in:
ghost 2023-11-25 05:32:11 +02:00
parent 81b2e1bdd1
commit 8513008e94

View file

@ -235,8 +235,15 @@ $results = $index->search($q)
<?php <?php
$identicon = new \Jdenticon\Identicon(); $identicon = new \Jdenticon\Identicon();
$identicon->setValue($result->url); $identicon->setValue(
parse_url(
$result->url,
PHP_URL_HOST
)
);
$identicon->setSize(16); $identicon->setSize(16);
$identicon->setStyle( $identicon->setStyle(
[ [
'backgroundColor' => 'rgba(255, 255, 255, 0)', 'backgroundColor' => 'rgba(255, 255, 255, 0)',