X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=object%2FItem.php;h=3211048cef6745a124fb6987912fcfcfdb4ebb8a;hb=836432bb9abf332894f2891c03adf19f22494ab1;hp=eac4697f91d4d3accde56748862de286fc856434;hpb=1048be1dd00a9e21a5538a118c53331951eef2e4;p=friendica.git diff --git a/object/Item.php b/object/Item.php index eac4697f91..3211048cef 100644 --- a/object/Item.php +++ b/object/Item.php @@ -82,6 +82,7 @@ class Item extends BaseObject { */ public function get_template_data($alike, $dlike, $thread_level=1) { require_once("mod/proxy.php"); + require_once("include/diaspora.php"); $result = array(); @@ -154,7 +155,7 @@ class Item extends BaseObject { $locate = array('location' => $item['location'], 'coord' => $item['coord'], 'html' => ''); call_hooks('render_location',$locate); - $location = ((strlen($locate['html'])) ? $locate['html'] : render_location_google($locate)); + $location = ((strlen($locate['html'])) ? $locate['html'] : render_location_dummy($locate)); $searchpath = $a->get_baseurl()."/search?tag="; $tags=array(); @@ -300,7 +301,7 @@ class Item extends BaseObject { // Diaspora isn't able to do likes on comments - but red does if (($item["item_network"] == NETWORK_DIASPORA) AND ($indent == 'comment') AND - !strstr($item["owner-link"], "/channel/") AND isset($buttons["like"])) + !diaspora_is_redmatrix($item["owner-link"]) AND isset($buttons["like"])) unset($buttons["like"]); // Facebook can like comments - but it isn't programmed in the connector yet.