Browse Source

fix identicon

main
ghost 1 year ago
parent
commit
8513008e94
  1. 9
      src/webui/search.php

9
src/webui/search.php

@ -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)',

Loading…
Cancel
Save