render_editlink: don't overwrite title if already set (second take)
This commit is contained in:
parent
4a71818880
commit
9c9372c7d0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue