From 8513008e94cc1c0886848951137699acccb29503 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 25 Nov 2023 05:32:11 +0200 Subject: [PATCH] fix identicon --- src/webui/search.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/webui/search.php b/src/webui/search.php index bb98cbb..2f16900 100644 --- a/src/webui/search.php +++ b/src/webui/search.php @@ -235,8 +235,15 @@ $results = $index->search($q) setValue($result->url); + $identicon->setValue( + parse_url( + $result->url, + PHP_URL_HOST + ) + ); + $identicon->setSize(16); + $identicon->setStyle( [ 'backgroundColor' => 'rgba(255, 255, 255, 0)',