+
+ // The friendica client has problems with the GUID. this is some workaround
+ if ($a->is_friendica_app()) {
+ require_once("include/items.php");
+ $urldata = parse_url($r[0]['link']);
+ $guid = basename($urldata["path"]);
+ $itemdata = get_item_id($guid, local_user());
+ if ($itemdata["id"] != 0)
+ $r[0]['link'] = $a->get_baseurl().'/display/'.$itemdata["nick"].'/'.$itemdata["id"];
+ }
+