render_editlink: don't overwrite title if already set (second take)

main
n 1 year ago
parent 4a71818880
commit 9c9372c7d0
Signed by: n
GPG Key ID: E96086FC951DAE30
  1. 2
      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']);
}
}

Loading…
Cancel
Save