mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 03:25:15 +02:00
Created hashtags from keywords now are links. URL are cleaned from tracking data.
This commit is contained in:
parent
904f8ac422
commit
759f199b6f
2 changed files with 13 additions and 4 deletions
|
@ -51,6 +51,7 @@ function completeurl($url, $scheme) {
|
|||
}
|
||||
|
||||
function parseurl_getsiteinfo($url, $no_guessing = false, $do_oembed = true, $count = 1) {
|
||||
require_once("include/network.php");
|
||||
|
||||
$a = get_app();
|
||||
|
||||
|
@ -63,6 +64,9 @@ function parseurl_getsiteinfo($url, $no_guessing = false, $do_oembed = true, $co
|
|||
|
||||
$url = trim($url, "'");
|
||||
$url = trim($url, '"');
|
||||
|
||||
$url = original_url($url);
|
||||
|
||||
$siteinfo["url"] = $url;
|
||||
$siteinfo["type"] = "link";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue