From 9c9372c7d08d613a2e3436b5a54c26ff7ec90766 Mon Sep 17 00:00:00 2001 From: n Date: Sat, 6 Mar 2021 18:14:58 +0100 Subject: [PATCH] render_editlink: don't overwrite title if already set (second take) --- shaargem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaargem.php b/shaargem.php index 24d49ac..50a45b5 100644 --- a/shaargem.php +++ b/shaargem.php @@ -63,7 +63,7 @@ function hook_shaargem_render_editlink($data) // fetch title only for gemini:// iris if(isset($data['link']['url'])) { if(strstr($data['link']['url'],"gemini://")) { - if (!isset($data['link']['title'])) { + if ($data['link']['title'] == '') { $data['link']['title'] = fetch_iri_title($data['link']['url']); } }