mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 10:58:48 +00:00
New addon "convpath": It converts all local links according to the current scheme (http/https)
This commit is contained in:
parent
be9f1fb659
commit
c9ccd91dd9
3 changed files with 63 additions and 4 deletions
|
@ -1447,11 +1447,13 @@ function fb_consume_stream($uid,$j,$wall = false) {
|
|||
//if(($datarray['body'] != '') and ($uid == 1))
|
||||
// $datarray['body'] .= "[noparse]".print_r($entry, true)."[/noparse]";
|
||||
|
||||
if ($entry->place->name)
|
||||
$datarray['coord'] = $entry->place->name;
|
||||
else if ($entry->place->location->street or $entry->place->location->city or $entry->place->location->Denmark) {
|
||||
if ($entry->place->name or $entry->place->location->street or
|
||||
$entry->place->location->city or $entry->place->location->Denmark) {
|
||||
$datarray['coord'] = '';
|
||||
if ($entry->place->name)
|
||||
$datarray['coord'] .= $entry->place->name;
|
||||
if ($entry->place->location->street)
|
||||
$datarray['coord'] = $entry->place->location->street;
|
||||
$datarray['coord'] .= $entry->place->location->street;
|
||||
if ($entry->place->location->city)
|
||||
$datarray['coord'] .= " ".$entry->place->location->city;
|
||||
if ($entry->place->location->country)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue