mirror of
https://github.com/YGGverse/Yo.git
synced 2026-03-31 17:55:35 +00:00
fix identicon
This commit is contained in:
parent
81b2e1bdd1
commit
8513008e94
1 changed files with 8 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue