mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 03:03:42 +00:00
Fixes E_NOTICE for absent 'port' element (#645)
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
e74ccf35c9
commit
e0145ca216
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ function mastodoncustomemojis_get_custom_emojis_for_author($author_link)
|
||||||
|
|
||||||
$url_parts = parse_url($author_link);
|
$url_parts = parse_url($author_link);
|
||||||
|
|
||||||
$api_base_url = $url_parts['scheme'] . '://' . $url_parts['host'] . ($url_parts['port'] ? ':' . $url_parts['port'] : '');
|
$api_base_url = $url_parts['scheme'] . '://' . $url_parts['host'] . (isset($url_parts['port']) ? ':' . $url_parts['port'] : '');
|
||||||
|
|
||||||
$cache_key = 'mastodoncustomemojis:' . $api_base_url;
|
$cache_key = 'mastodoncustomemojis:' . $api_base_url;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue