mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Facebook: Don't add "story". Convpath now converts only pictures
This commit is contained in:
parent
acebf88aa5
commit
6f27beb728
2 changed files with 15 additions and 1 deletions
|
@ -45,6 +45,11 @@ function convpath_convert($path) {
|
|||
$search = "https://".$a->get_hostname();
|
||||
$replace = "http://".$a->get_hostname();
|
||||
}
|
||||
$path = str_replace($search, $replace, $path);
|
||||
$searcharr = array("src='".$search, 'src="'.$search);
|
||||
$replacearr = array("src='".$replace, 'src="'.$replace);
|
||||
$path = str_replace($searcharr, $replacearr, $path);
|
||||
|
||||
//$path = str_replace($search, $replace, $path);
|
||||
|
||||
return($path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue